Function at 0x10016e70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002dcaf
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.10016cd0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x100076e8
push 0x1000200c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1002fdb4], 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.0x10016edf.1
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov al, byte [ecx + 0x100171d9]
jmp dword [eax*4 + 0x100171d1]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov dword [edx + 0x70], eax
jmp 0x10016efb
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x70], 8
mov ecx, dword [ebp - 0x20]
call fcn.10017c86
and eax, 0xff
test eax, eax
jne 0x10016f31
call dword [fcn.10007584]
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.10007588]
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.10007590]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x28], eax
push 1
call dword [fcn.10007590]
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 0x10002018
mov ecx, dword [0x1002fdb4]
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.10023a17
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.10017740
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.10017740
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.10017740
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x6c], eax
push 0x1000202c
mov edx, dword [0x1002fdb4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
push 0x30
call fcn.10023a17
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 0x10002040
mov eax, dword [0x1002fdb4]
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.100075e4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx + 0x14]
shl edx, 1
push edx
call fcn.100239f8
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 [0x10006b8c], 1
cmp eax, 0x10006b8c
invalid
cmp eax, 0x10006b8c
add dword [esi + 0xf], edi
mov word [ebx], gs
adc byte [ecx], al
jle 0x100272e8
movsx eax, byte [esi]
push 4
push eax
call fcn.1002992c
pop ecx
pop ecx
jmp 0x100272f7
movsx eax, byte [esi]
mov ecx, dword [0x10006980]
mov al, byte [ecx + eax*2]
and eax, 4
test eax, eax
jne 0x100272cf
mov cl, byte [0x10006b90]
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 0x10027306
pop esi
ret