Function at 0x485790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5cef7c
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x680f10]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
mov esi, dword [esp + 0x850]
mov ebx, dword [esp + 0x858]
xor edi, edi
push edi
push 7
mov dword [esp + 0x20], ecx
push 1
lea ecx, [esp + 0x78]
call fcn.00483910
push 1
push edi
push edi
push esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x858], edi
call fcn.00484be0
mov esi, eax
cmp esi, edi
mov dword [esp + 0x40], esi
je 0x48582c
cmp esi, 3
je 0x48582c
lea ecx, [esp + 0x6c]
mov dword [esp + 0x848], 0xffffffff
call fcn.00481f90
mov eax, esi
jmp 0x485ac4
push 0x5f1158
lea ecx, [esp + 0x24]
call fcn.0048cd50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x84c], 1
call fcn.004b7af0
mov ebp, 0x10
cmp dword [esp + 0x3c], ebp
mov esi, eax
mov byte [esp + 0x848], 0
mov dword [esp + 0x20], 0x5f1558
jb 0x48587d
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004274fc
add esp, 4
cmp esi, edi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 0
mov dword [esp + 0x20], 0x5f13d0
jne 0x4858b8
lea ecx, [esp + 0x6c]
mov dword [esp + 0x848], 0xffffffff
call fcn.00481f90
mov eax, 1
jmp 0x485ac4
push 0x5f1160
lea ecx, [esp + 0x48]
call fcn.0048cd50
lea edx, [esp + 0x44]
push edx
mov ecx, esi
mov byte [esp + 0x84c], 2
call fcn.004b7af0
cmp dword [esp + 0x60], ebp
mov esi, eax
mov byte [esp + 0x848], 0
mov dword [esp + 0x44], 0x5f1558
jb 0x4858ff
mov eax, dword [esp + 0x4c]
push eax
call fcn.004274fc
add esp, 4
cmp esi, edi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], edi
mov byte [esp + 0x4c], 0
mov dword [esp + 0x44], 0x5f13d0
je 0x48589a
push 0x5f1164
lea ecx, [esp + 0x24]
call fcn.0048cd50
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov byte [esp + 0x84c], 3
call fcn.004b7ac0
cmp dword [esp + 0x3c], ebp
mov edi, eax
mov byte [esp + 0x848], 0
mov dword [esp + 0x20], 0x5f1558
jb 0x485967
mov edx, dword [esp + 0x28]
push edx
call fcn.004274fc
add esp, 4
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
mov dword [esp + 0x20], 0x5f13d0
je 0x4859de
mov ecx, edi
call fcn.004b5810
test eax, eax
jbe 0x4859de
push ebp
mov ecx, edi
call fcn.004b5830
mov esi, eax
test esi, esi
je 0x4859d0
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
cmp eax, 5
jne 0x4859d0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x5ef32e
call fcn.00489f70
mov eax, dword [esp + 0x858]
mov ecx, dword [esp + 0x1c]
push ebx
push eax
push esi
call fcn.00480f30
mov ecx, edi
add ebp, 1
call fcn.004b5810
cmp ebp, eax
jb 0x485991
test ebx, ebx
je 0x485aac
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x1ec]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x1c], eax
jbe 0x485aac
mov edi, edi
mov ecx, dword [esp + 0x18]
push ebp
lea edx, [esp + 0x18]
push edx
call fcn.00466be0
mov edi, dword [ebx + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
mov byte [esp + 0x850], 4
call fcn.0048bb10
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x485a37
cmp eax, ebx
je 0x485a3c
call fcn.0044b7ad
cmp dword [esi + 4], edi
jne 0x485a53
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
call fcn.00491d60
mov dword [eax], 2
mov esi, dword [esp + 0x14]
test esi, esi
mov byte [esp + 0x848], 0
je 0x485a9f
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x485a97
mov eax, dword [esi]
test eax, eax
je 0x485a7e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x485a8e
push eax
call fcn.004274fc
add esp, 4
push esi
call fcn.004274fc
add esp, 4
mov dword [esp + 0x14], 0
add ebp, 1
cmp ebp, dword [esp + 0x1c]
jb 0x485a00
lea ecx, [esp + 0x6c]
mov dword [esp + 0x848], 0xffffffff
call fcn.00481f90
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.0044abb9
add esp, 0x838
ret 0xc