Function at 0x10004f60
Capabilities:
Rebuild import table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035f08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov dword [ebp - 0x48], ecx
push 0x100371c8
lea ecx, [ebp - 0x84]
call fcn.10002770
mov dword [ebp - 4], 0
push 0x100371cc
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.10001530
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.10004af0
lea ecx, [ebp - 0x6c]
call fcn.10004440
push eax
call fcn.100015c0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1c], ecx
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x1c]
cmp dword [eax + edx + 0x78], 0
jne 0x1000501b
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.10002e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.10002e70
mov eax, dword [ebp - 0x30]
jmp 0x10005193
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx + 0x78]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, 8
imul edx, ecx, 0xc
mov eax, dword [ebp - 0x1c]
cmp dword [eax + edx + 0x78], 0
je 0x1000504b
mov dword [ebp - 0x24], 0xc
jmp 0x10005052
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*8 + 0x78]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*8 + 0x7c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x4c]
push eax
push 4
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 0
je 0x1000516b
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0
je 0x100050dc
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
jmp 0x100050e8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x1000515d
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
and edx, 0x80000000
je 0x10005127
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
and ecx, 0xffff
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
jmp 0x10005149
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
lea eax, [ecx + edx + 2]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
jmp 0x100050e8
mov ecx, dword [ebp - 0x14]
add ecx, 0x14
mov dword [ebp - 0x14], ecx
jmp 0x1000508f
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.10002e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.10002e70
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4