Function at 0x10016f50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002dd8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x88
call fcn.10016db0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x100076a8
push 0x10001fc8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1002fe94], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0x1f
ja case.0x10016fbf.1
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov al, byte [ecx + 0x100172b9]
jmp dword [eax*4 + 0x100172b1]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov dword [edx + 0x70], eax
jmp 0x10016fdb
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x70], 8
mov ecx, dword [ebp - 0x20]
call fcn.10017d66
and eax, 0xff
test eax, eax
jne 0x10017011
call dword [fcn.10007544]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x10c], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10c]
push ecx
call dword [fcn.10007548]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0xcc0020
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov eax, 0x3e8
xor edx, edx
div dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov cl, byte [ebp + 0xc]
mov byte [eax + 0xc], cl
push 0
call dword [fcn.10007550]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x28], eax
push 1
call dword [fcn.10007550]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x2c], eax
mov ecx, dword [ebp - 0x20]
mov eax, 0x20
cdq
idiv dword [ecx + 0x70]
mov edx, dword [ebp - 0x20]
mov byte [edx + 0x24], al
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x30], 0
nop
nop
nop
push 0x10001fd4
mov ecx, dword [0x1002fe94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
push eax
call dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
push eax
call dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x80], eax
push 0
call dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x48], eax
nop
nop
nop
push 0
call dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x60], 0
push 0x30
call fcn.10023af7
add esp, 4
push 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x70]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.10017820
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x70]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.10017820
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x68], eax
push 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x70]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.10017820
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x6c], eax
push 0x10001fe8
mov edx, dword [0x1002fe94]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
push 0x30
call fcn.10023af7
add esp, 4
push 0
push 0
mov eax, dword [ebp - 0x20]
add eax, 0x5c
push eax
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x64]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
push ecx
call dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x54], eax
push 0
push 0
mov eax, dword [ebp - 0x20]
add eax, 0x60
push eax
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x68]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
push ecx
call dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x58], eax
push 0
push 0
mov eax, dword [ebp - 0x20]
add eax, 0x78
push eax
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x68]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
push ecx
call dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x84], eax
push 0x10001ffc
mov eax, dword [0x1002fe94]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x58]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x4c]
push ecx
call dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x48]
push edx
call dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x84]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x80]
push eax
call dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x28]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x20]
add edx, 0x34
push edx
call dword [fcn.100075a4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx + 0x14]
shl edx, 1
push edx
call fcn.10023ad8
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x68]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
xor edx, edx
div dword [ecx + 0x2c]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
inc esi
cmp dword [0x10006b4c], 1
cmp eax, 0x10006b4c
add dword [esi + 0xf], edi
cmp eax, 0x10006b4c
dec esp
imul eax, dword [eax], 0x10
add dword [esi + 0xf], edi
movsx eax, byte [esi]
push 4
push eax
call fcn.10029a0c
pop ecx
pop ecx
jmp 0x100273d7
movsx eax, byte [esi]
mov ecx, dword [0x10006940]
mov al, byte [ecx + eax*2]
and eax, 4
test eax, eax
jne 0x100273af
mov cl, byte [0x10006b50]
mov al, byte [esi]
mov byte [esi], cl
inc esi
mov cl, byte [esi]
mov byte [esi], al
mov al, cl
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x100273e6
pop esi
ret