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

Disassembly:
push 0xffffffffffffffff
push 0x5346a3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x591700]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591700]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0xac]
xor ecx, ecx
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x38], ecx
cmp ebx, dword [esi + 0x34]
jne 0x48046f
mov edx, dword [esi + 0x4c]
test edx, edx
je 0x48046f
mov eax, dword [esi + 0x44]
cmp eax, 0x20
jne 0x480407
add edx, 0xfffffff9
push edx
mov edx, dword [esi + 0x48]
add edx, 4
push edx
mov ecx, esi
push edi
call fcn.00453e03
jmp 0x48064a
cmp eax, 0x10
jne 0x480419
lea eax, [edx - 4]
push eax
mov eax, dword [esi + 0x48]
add eax, 2
push eax
jmp 0x4803fa
cmp eax, 8
jne 0x48042a
lea eax, [edx - 0xc]
push eax
mov eax, dword [esi + 0x48]
add eax, 9
jmp 0x480416
cmp eax, 2
jne 0x480453
cmp dword [esi + 0x14], 8
jb 0x480439
mov ebx, dword [esi]
jmp 0x48043b
mov ebx, esi
mov eax, dword [esi + 0x48]
push ecx
mov ecx, esp
lea eax, [ebx + eax*2]
mov dword [ecx], eax
mov ecx, edi
call fcn.0047e8d2
pop ecx
jmp 0x48064a
mov ecx, esi
cmp eax, 0x80
jne 0x480469
lea eax, [edx - 3]
push eax
mov eax, dword [esi + 0x48]
add eax, 2
push eax
jmp 0x4803fc
push edx
push dword [esi + 0x48]
jmp 0x4803fc
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ecx
mov word [esp + 0x64], ax
mov dword [esp + 0xa0], ecx
mov ecx, ebx
mov eax, dword [esi + 0x58]
sar ecx, 0x10
movzx edx, bx
shl edx, 5
mov ebx, dword [eax + ecx*4]
cmp dword [ebx + edx + 0x14], 0
jne 0x480631
mov eax, dword [ebx + edx + 8]
and eax, 0x2fffff
cmp eax, dword [ebx + edx + 4]
je 0x480631
mov ecx, dword [ebx + edx + 8]
mov eax, ecx
mov ebp, dword [ebx + edx + 4]
sar eax, 0x16
sub ebp, eax
mov eax, 0x2fffff
and ecx, eax
sub ebp, ecx
mov dword [esp + 0x18], ebp
mov ebp, dword [ebx + edx + 8]
and ebp, eax
add ebp, dword [ebx + edx]
cmp dword [esi + 0x14], 8
jb 0x4804e7
mov eax, dword [esi]
jmp 0x4804e9
mov eax, esi
lea ebx, [eax + ebp*2]
push 0x3c
push ebx
call fcn.00508d5a
mov edx, dword [esp + 0x20]
pop ecx
pop ecx
test eax, eax
je 0x4805fd
sub eax, ebx
sar eax, 1
cmp eax, edx
jge 0x4805fd
cmp dword [esi + 0x14], 8
jb 0x480518
mov ecx, dword [esi]
jmp 0x48051a
mov ecx, esi
mov eax, dword [esi + 0x50]
and dword [esp + 0x1c], 0
or dword [esp + 0x20], 0xffffffff
and dword [esp + 0x5c], 0
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x60], 7
mov word [esp + 0x4c], ax
lea ebx, [edx + ebp]
mov byte [esp + 0xa0], 1
cmp ebp, ebx
jge 0x4805f7
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.0047f9d4
cmp dword [esp + 0x3c], 2
jne 0x480599
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
lea ecx, [ecx + eax*2]
push ecx
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0x80]
call fcn.0047e8d2
pop ecx
mov byte [esp + 0xa0], 2
jmp 0x4805c7
cmp dword [esp + 0x3c], 8
jne 0x4805ed
mov eax, dword [esp + 0x44]
mov ecx, esi
add eax, 0xfffffff4
push eax
mov eax, dword [esp + 0x44]
add eax, 9
push eax
lea eax, [esp + 0x84]
push eax
call fcn.00453e03
mov byte [esp + 0xa0], 3
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x70]
call fcn.00454308
push 0
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0xa8], 1
call fcn.00451108
cmp dword [esp + 0x24], ebx
jl 0x48055a
lea ecx, [esp + 0x4c]
jmp 0x480628
cmp dword [esi + 0x14], 8
jb 0x480605
mov esi, dword [esi]
push ecx
mov ecx, esp
lea eax, [esi + ebp*2]
mov dword [ecx], eax
lea ecx, [esp + 0x80]
call fcn.0047e8d2
pop ecx
push eax
lea ecx, [esp + 0x68]
call fcn.00461625
lea ecx, [esp + 0x7c]
push 0
push 1
call fcn.00451108
lea eax, [esp + 0x64]
mov ecx, edi
push eax
call fcn.0045056e
push 0
push 1
lea ecx, [esp + 0x6c]
call fcn.00451108
mov eax, edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00504075
add esp, 0x90
ret 8