Function at 0x413620
Capabilities:
Rebuild import table
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c8df4
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x1b4]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x2c], ebx
call fcn.00484590
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41366d
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
push 0xa
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c0], ebx
mov dword [esp + 0x24], ebx
call fcn.00484900
push fcn.004012b0
push fcn.00402970
push 0x14
push 4
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x1d0], 1
call fcn.004a5f6c
mov edi, dword [esp + 0x1c4]
mov byte [esp + 0x1bc], 2
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
jne 0x4136fa
mov eax, dword [edi + 4]
push 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x4136f8
mov dword [esp + 0x20], 1
jmp 0x4139f0
mov esi, eax
mov eax, dword [edi + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x28], ebp
jne 0x41371c
mov dword [esp + 0x20], 2
jmp 0x4139e9
push 0xf0
lea edx, [esp + 0xc0]
push ebx
push edx
call fcn.004ac6c0
mov eax, dword [edi + 0xc]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x413742
xor eax, eax
jmp 0x413979
lea ecx, [esp + 0x50]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.00402860
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00413a90
mov eax, dword [esp + 0x54]
test eax, eax
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x24], edx
mov ebp, eax
je 0x41396f
lea eax, [esp + 0xc4]
mov dword [esp + 0x18], eax
lea esi, [esp + 0x6c]
test ebp, ebp
mov eax, ebp
je 0x41396a
mov ebp, dword [ebp]
add eax, 8
push eax
mov ecx, esi
call fcn.004028f0
push 1
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.004061a0
mov byte [esp + 0x1bc], 3
mov eax, dword [eax]
push 0x4e3470
or ebx, 1
push eax
mov dword [esp + 0x34], ebx
call fcn.004a30dd
add esp, 8
test eax, eax
sete al
test al, al
je 0x413806
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.00404bc0
mov eax, dword [eax]
push 0x4e3470
push eax
or ebx, 2
call fcn.004a30dd
add esp, 8
test eax, eax
sete al
test al, al
mov byte [esp + 0x17], 1
jne 0x41380b
mov byte [esp + 0x17], 0
test bl, 2
je 0x413837
mov eax, dword [esp + 0x38]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x2c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413837
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 1
mov dword [esp + 0x1bc], 2
je 0x41386a
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41386a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x413916
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
add eax, 0xffffffff
push eax
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
mov edi, 1
call fcn.004061a0
push eax
mov ecx, esi
mov byte [esp + 0x1c0], 4
call fcn.004028f0
mov byte [esp + 0x1bc], 2
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4138c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
add eax, 0xffffffff
push eax
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call fcn.00404bc0
push eax
mov ecx, esi
mov byte [esp + 0x1c0], 5
call fcn.004028f0
mov byte [esp + 0x1bc], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413918
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413918
xor edi, edi
mov eax, edi
sub eax, 0
je 0x413935
sub eax, 1
jne 0x41394d
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov dword [eax - 4], 4
mov dword [eax], ecx
jmp 0x41394d
mov eax, dword [esi]
mov edi, dword [esp + 0x18]
push eax
mov dword [edi - 4], 4
call fcn.004a4165
add esp, 4
mov dword [edi], eax
add dword [esp + 0x18], 0xc
add esi, 4
test ebp, ebp
jne 0x413789
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c4]
jmp 0x413971
call fcn.00484c83
mov eax, edx
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
cmp dword [edi + 0x14], 1
push ebp
jne 0x41399e
push 0x20
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0xc8]
call fcn.00413cc0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
jmp 0x4139ba
push 0x10
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0xc8]
call fcn.00413cc0
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x34], edx
mov eax, dword [edi + 0x10]
sub eax, 0
je 0x4139d7
sub eax, 1
je 0x4139d7
sub eax, 1
jne 0x4139e9
push ecx
lea ecx, [edi + 0x18]
call fcn.004023b0
jmp 0x4139e9
push ecx
push 0x4e3480
add edi, 0x18
push edi
call fcn.00404460
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push fcn.004012b0
push 0x14
push 4
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x1cc], 1
call fcn.004a2e61
lea ecx, [esp + 0x50]
mov byte [esp + 0x1bc], 0
call fcn.00484a38
mov dword [esp + 0x1bc], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413a47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret 4