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

Disassembly:
push 0xffffffffffffffff
push 0x579ae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x70]
push ebp
push esi
mov esi, ecx
cmp eax, ebx
push edi
mov dword [esp + 0x10], esi
jg 0x480a74
mov ebp, dword [esp + 0x74]
xor edi, edi
mov eax, dword [ebp + 4]
cmp eax, edi
je 0x480725
mov eax, dword [eax]
cmp eax, edi
jne 0x48071f
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], edi
mov dword [ebp + 4], edi
call fcn.00462eba
mov eax, dword [esp + 0x78]
lea ecx, [esi + 0x15c]
sub ebx, eax
mov dword [ebp + 0x14], edi
push ebx
push eax
lea eax, [esp + 0x84]
push eax
call fcn.0046357a
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x74], edi
mov eax, dword [ecx - 8]
cmp eax, edi
mov dword [esp + 0x14], eax
jle 0x480a49
jmp 0x480776
xor edi, edi
mov edx, dword [esp + 0x7c]
mov esi, dword [esi + 0x2f8]
test esi, esi
mov ebx, dword [edx - 8]
je 0x480a63
lea eax, [esi + 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.00462f38
lea ecx, [esi + 0x10]
mov byte [esp + 0x6c], 1
push ecx
lea ecx, [esp + 0x38]
call fcn.00462f38
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], 0x592af8
mov ecx, dword [esp + 0x80]
mov byte [esp + 0x6c], 2
test ecx, ecx
je 0x4807f2
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
call dword [eax]
test al, al
je 0x4807f2
mov byte [esp + 0x6c], 3
jmp 0x48082f
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x480804
mov byte [esp + 0x6c], 4
jmp 0x48082f
mov ecx, dword [esp + 0x74]
push ecx
push eax
lea ecx, [esp + 0x84]
call fcn.00463b56
cmp eax, 0xffffffff
jne 0x480822
mov byte [esp + 0x6c], 5
jmp 0x48082f
cmp eax, ebx
jge 0x48082a
mov ebx, eax
mov edi, esi
mov byte [esp + 0x6c], 6
lea ecx, [esp + 0x34]
call fcn.00462da6
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 0
call fcn.00462da6
mov esi, dword [esi]
test esi, esi
jne 0x48078b
test edi, edi
je 0x480a63
lea edx, [edi + 0xc]
lea ecx, [esp + 0x4c]
push edx
call fcn.00462f38
lea eax, [edi + 0x10]
lea ecx, [esp + 0x50]
push eax
mov byte [esp + 0x70], 7
call fcn.00462f38
mov eax, dword [edi + 0x14]
mov dword [esp + 0x54], eax
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x58], ecx
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x5c], edx
mov edx, dword [edi + 0x20]
mov dword [esp + 0x60], edx
mov dword [esp + 0x48], 0x592af8
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
mov edi, ebx
mov ecx, dword [eax - 8]
or esi, 0xffffffff
test ecx, ecx
mov byte [esp + 0x6c], 8
mov dword [esp + 0x1c], edi
je 0x48092d
lea edi, [ebx + 1]
lea ecx, [esp + 0x7c]
push edi
push eax
call fcn.00463b56
mov esi, eax
cmp esi, 0xffffffff
je 0x480929
mov eax, dword [esp + 0x7c]
mov cl, byte [esi + eax - 1]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
lea ecx, [eax + 0xc4]
push edx
call fcn.0046305e
test eax, eax
jl 0x480929
mov ecx, dword [esp + 0x50]
inc ebx
inc edi
push edi
push ecx
lea ecx, [esp + 0x84]
call fcn.00463b56
mov esi, eax
cmp esi, 0xffffffff
je 0x480929
mov edx, dword [esp + 0x50]
push edi
push edx
lea ecx, [esp + 0x84]
call fcn.00463b56
mov esi, eax
cmp esi, 0xffffffff
jne 0x4808d1
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x480959
mov eax, dword [0x5d163c]
inc ebx
push ebx
push eax
lea ecx, [esp + 0x84]
call fcn.00463b56
cmp esi, 0xffffffff
je 0x480957
cmp esi, eax
jle 0x480959
cmp eax, 0xffffffff
je 0x480959
mov esi, eax
cmp esi, 0xffffffff
jne 0x480965
mov ecx, dword [esp + 0x14]
lea esi, [ecx - 1]
mov edx, dword [esp + 0x50]
mov ecx, 1
mov eax, dword [edx - 8]
cmp eax, 1
jl 0x480978
mov ecx, eax
add ecx, esi
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x78]
add edi, ecx
test eax, eax
jle 0x480990
add eax, ecx
lea esi, [esi + eax - 1]
jmp 0x480992
add esi, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x4809c9
mov eax, dword [ebp + 0x18]
push 0x18
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.00462f44
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*8 - 0x14]
jl 0x4809c9
inc ecx
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp + 0x10], eax
sub eax, 0x18
dec ecx
jne 0x4809bb
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov dword [eax + 4], ebx
mov dword [eax], 0
mov ebx, dword [ebp + 0xc]
inc ebx
lea ecx, [eax + 8]
mov dword [ebp + 0xc], ebx
mov ebx, ecx
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x24]
mov dword [ecx], edi
mov dword [ecx + 4], esi
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 0xc], edx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x480a11
mov dword [ecx], eax
jmp 0x480a14
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 9
call fcn.00462da6
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 0
call fcn.00462da6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x10]
cmp ecx, eax
jl 0x480774
xor edi, edi
cmp dword [esp + 0x84], edi
je 0x480a63
mov ecx, dword [esi + 0x20]
push 0x105
push edi
push edi
push ecx
call dword [0x5887d0]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00462da6
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14