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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
mov ebp, dword [esp + 0x88]
xor eax, eax
push esi
mov dword [esp + 0x3c], eax
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
push edi
push esi
mov dword [esp + 0x1c], eax
call fcn.0046cec0
push esi
mov dword [esp + 0x2c], eax
call fcn.0046cec0
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x3c], eax
xor eax, eax
add esp, 8
mov ebx, dword [edi + 0x38]
mov al, byte [edi + 4]
mov ecx, dword [edi + 0x3c]
cmp eax, 0x71
mov edx, dword [ebx]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edx
je 0x480457
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 1
mov cl, byte [eax + 0x38]
test cl, cl
jne 0x480457
lea edx, [edx + edx*4]
shl edx, 2
mov dword [esp + 0x38], edx
jmp 0x480399
mov edx, dword [esp + 0x38]
mov ecx, dword [edi]
mov eax, dword [esp + 0x10]
cmp eax, dword [ecx]
jg 0x480453
mov ecx, dword [ebx + 8]
xor eax, eax
test edx, edx
jle 0x4803dc
add ecx, 0xe
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
xor ecx, ecx
mov cx, word [edx]
mov edx, dword [esp + 0x10]
cmp ecx, edx
je 0x4803dc
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
inc eax
add edx, 0x14
cmp eax, ecx
mov dword [esp + 0x3c], edx
jl 0x4803b7
cmp eax, dword [esp + 0x14]
jne 0x48043b
mov eax, dword [esp + 0x18]
push 0
push 0x81
push eax
call fcn.0046b0b0
add esp, 0xc
test eax, eax
je 0x48052c
mov ecx, dword [esp + 0x10]
or byte [eax + 3], 4
push eax
push ebx
push ebp
mov dword [eax + 4], ecx
call fcn.0046b500
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x48043b
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x38]
mov cx, word [esp + 0x10]
mov word [edx + eax + 0xe], cx
mov edx, dword [esp + 0x14]
inc edx
add eax, 0x14
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc ecx
mov al, byte [edx + 0x38]
mov dword [esp + 0x10], ecx
test al, al
je 0x480395
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [edx*4]
push eax
push ecx
call fcn.0043fa70
add esp, 8
mov dword [esp + 0x50], eax
test eax, eax
je 0x4805d4
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 8]
test edx, edx
jle 0x4804a8
add ecx, 0xe
mov dword [esp + 0x4c], edx
xor edx, edx
add eax, 4
mov dx, word [ecx]
add ecx, 0x14
dec edx
mov dword [eax - 4], edx
mov edx, dword [esp + 0x4c]
dec edx
mov dword [esp + 0x4c], edx
jne 0x48048a
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [edx + edx*4 + 0x10]
push eax
push ecx
call fcn.0043fa70
add esp, 8
mov dword [esp + 0x48], eax
test eax, eax
je 0x4805dc
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 0
mov word [eax + 6], cx
lea edx, [eax + ecx*4 + 0xc]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
test ecx, ecx
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dl, byte [edx + 0x4d]
mov byte [eax + 4], dl
jle 0x4805dc
mov ecx, dword [esp + 0x50]
add eax, 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], eax
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x1c]
mov eax, dword [edx + eax]
mov dword [esp + 0x4c], eax
test byte [eax + 3], 1
je 0x480539
push eax
push ebp
call fcn.0046dd90
add esp, 8
jmp 0x48057e
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
push edx
push edi
push ebp
call fcn.004802c0
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x48055f
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
mov eax, ecx
mov edx, dword [eax]
mov eax, dword [esp + 0x4c]
push edx
push eax
push ebp
call fcn.00471090
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [ecx + edx], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov edx, dword [ebx + 8]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x1c]
mov dl, byte [edx + eax + 0xc]
mov eax, dword [esp + 0x10]
mov byte [ecx + eax], dl
mov edx, dword [esp + 0x38]
mov ecx, 4
inc eax
add edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x30]
add edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
add edx, 0x14
cmp eax, ecx
mov dword [esp + 0x1c], edx
jl 0x48050c
jmp 0x4805dc
mov dword [esp + 0x48], 0
mov dword [edi + 0x38], ebx
mov eax, dword [ebp]
push 0
push ebx
push eax
call fcn.00471460
mov ebx, dword [esp + 0x34]
add esp, 0xc
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x71
jne 0x48060b
mov dword [esp + 0x3c], 0
jmp 0x4806a7
mov ecx, dword [edi]
mov ebx, dword [ecx]
mov dword [esp + 0x44], ebx
lea edx, [ebx + 1]
push edx
push ebp
call fcn.0046fa10
push eax
push 0
push 7
push esi
mov dword [esp + 0x54], eax
call fcn.0046c410
mov ecx, dword [esp + 0x30]
lea eax, [ebx + ebx*4 + 0x10]
push eax
push ecx
call fcn.00444970
add esp, 0x20
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4806a3
mov ecx, dword [esp + 0x18]
lea edx, [eax + ebx*4 + 0xc]
mov dword [eax + 8], edx
mov word [eax + 6], bx
mov edx, dword [ecx + 0x10]
xor ebx, ebx
mov ecx, dword [edx + 0xc]
mov dl, byte [ecx + 0x4d]
mov byte [eax + 4], dl
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x4806a3
mov eax, dword [esp + 0x2c]
add eax, 0xc
mov dword [esp + 0x4c], eax
push ebx
push edi
push ebp
call fcn.004802c0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
add esp, 0xc
inc ebx
mov dword [ecx], eax
mov eax, dword [edx + 8]
add ecx, 4
mov byte [eax + ebx - 1], 0
mov eax, dword [esp + 0x44]
cmp ebx, eax
mov dword [esp + 0x4c], ecx
jl 0x480676
mov ebx, dword [esp + 0x28]
mov ecx, dword [edi + 0x38]
push str.ORDER
push ecx
push edi
push ebp
mov dword [edi + 0x3c], 0
call fcn.00470fa0
mov eax, dword [ebx + 0x3c]
add esp, 0x10
test eax, eax
jne 0x4806db
mov edx, dword [ebx + 0x38]
push str.ORDER
push edx
push ebx
push ebp
call fcn.00470fa0
add esp, 0x10
mov eax, dword [esp + 0x24]
push eax
push edi
push ebp
call fcn.0047f9a0
mov ecx, dword [edi + 8]
xor eax, eax
add esp, 0xc
cmp ecx, eax
je 0x480736
cmp dword [esp + 0x20], 0x71
jne 0x480736
mov ebx, dword [ebp + 0x4c]
inc ebx
mov dword [esp + 0x4c], ebx
lea eax, [ebx + 1]
mov dword [ebp + 0x4c], eax
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x480716
inc eax
jmp 0x480719
mov eax, dword [edi + 8]
push ebx
push eax
push 0xe
push esi
call fcn.0046c410
mov ecx, dword [esp + 0x48]
push ecx
push ebx
push 0xe
push esi
call fcn.0046c410
add esp, 0x20
jmp 0x48073e
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], eax
mov edx, dword [edi + 0x48]
mov ebx, dword [esp + 0x18]
push edx
push ebx
call fcn.00462ed0
mov eax, dword [edi + 0x4c]
mov dword [edi + 0x48], 0
push eax
push ebx
call fcn.00462ed0
mov dword [edi + 0x4c], 0
mov ebx, dword [ebp + 0x4c]
inc ebx
lea ecx, [esp + 0x8c]
push ebx
push 0xa
lea eax, [ebx + 1]
push ecx
mov dword [esp + 0x2c], eax
add eax, 2
mov dword [esp + 0x38], eax
add eax, 2
mov dword [esp + 0x60], eax
mov dword [ebp + 0x4c], eax
call fcn.0047c340
mov edx, dword [esp + 0x2c]
lea eax, [edx + 1]
push eax
lea eax, [esp + 0x8c]
push 0xa
push eax
call fcn.0047c340
push 1
push esi
call fcn.0046ce80
push esi
mov dword [esp + 0x88], eax
call fcn.0046cf30
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x1e8]
lea ecx, [esp + 0xb0]
mov dword [esp + 0x9c], edx
push ecx
push eax
push ebp
call fcn.0047d6a0
mov edx, dword [esp + 0x50]
add esp, 0x40
push edx
push 1
push 7
push esi
call fcn.0046c410
push ebx
push 4
push esi
call fcn.0046cea0
push esi
call fcn.0046cf30
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x6c], eax
mov dword [edi + 8], edx
mov dword [edi + 0xc], 0
mov eax, dword [ebp + 0x1e8]
push ecx
push edi
push ebp
mov dword [esp + 0x90], eax
call fcn.0047d6a0
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x5c]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0x48]
push ecx
push 1
push 7
push esi
call fcn.0046c410
mov edx, dword [esp + 0x4c]
lea eax, [edx + 1]
push eax
push 4
push esi
call fcn.0046cea0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x84]
add esp, 0x48
push eax
mov eax, dword [esp + 0x20]
push 0xfffffffffffffff0
push ecx
mov ecx, dword [esp + 0xa4]
inc eax
push edx
push eax
lea edx, [esp + 0x90]
push ecx
push edx
push edi
push ebp
call fcn.00480c60
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x44]
add esp, 0x24
cmp eax, 0x71
je 0x4808c0
cmp eax, 0x70
jne 0x4808f8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x48]
push 0xffffffffffffffef
push ecx
mov ecx, dword [esp + 0xa4]
push edx
push eax
lea edx, [esp + 0x80]
push ecx
push edx
push edi
push ebp
call fcn.00480c60
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x44]
add esp, 0x24
cmp eax, 0x72
je 0x48095b
cmp eax, 0x73
je 0x48095b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 0x1b
push esi
call fcn.0046c410
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
push edx
push eax
push 2
push esi
call fcn.0046c410
mov ecx, dword [esp + 0x30]
lea eax, [ecx + 1]
push eax
push 4
push esi
call fcn.0046cea0
mov edx, dword [esp + 0x58]
push edx
push 0
push 1
push esi
call fcn.0046c410
mov ecx, dword [esp + 0x64]
add esp, 0x3c
fld qword [ecx + 0x20]
fadd qword [edi + 0x20]
fstp qword [edi + 0x20]
jmp 0x480975
mov eax, dword [esp + 0x24]
push eax
push 0
push 1
push esi
call fcn.0046c410
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x20], 0x73
jne 0x48099f
fld qword [edi + 0x20]
fcomp qword [ecx + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
fnstsw ax
test ah, 0x41
jne 0x4809e5
mov eax, dword [ecx + 0x20]
mov dword [edi + 0x20], eax
mov ecx, dword [ecx + 0x24]
mov dword [edi + 0x24], ecx
jmp 0x4809e5
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push edx
push eax
push 0x1b
push esi
call fcn.0046c410
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
push ecx
lea eax, [edx + 1]
push eax
push 2
push esi
call fcn.0046c410
push ebx
push 4
push esi
call fcn.0046cea0
mov eax, dword [esp + 0x5c]
push eax
push 0
push 1
push esi
call fcn.0046c410
add esp, 0x3c
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
push ecx
lea eax, [edx + 1]
push eax
push 2
push esi
call fcn.0046c410
push ebx
push 4
push esi
mov dword [esp + 0x54], eax
call fcn.0046cea0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push 0x1b
push esi
call fcn.0046c410
mov edx, dword [esp + 0x60]
push edx
push 0
push 1
push esi
call fcn.0046c410
mov eax, dword [esp + 0x5c]
add esp, 0x3c
cmp eax, 0x71
jne 0x480a3e
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
jmp 0x480a83
cmp eax, 0x73
jne 0x480a52
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
inc eax
mov dword [esp + 0x38], eax
jmp 0x480a83
push ebx
push 4
push esi
call fcn.0046cea0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0x1b
push esi
mov dword [esp + 0x68], eax
call fcn.0046c410
mov eax, dword [esp + 0x50]
push eax
push 0
push 1
push esi
call fcn.0046c410
add esp, 0x2c
push esi
call fcn.0046cf30
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, 0x71
je 0x480a9e
cmp eax, 0x70
jne 0x480ab3
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ecx
push edx
push 2
push esi
call fcn.0046c410
add esp, 0x10
mov eax, dword [esp + 0x10]
inc eax
push eax
push 4
push esi
call fcn.0046cea0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
push ecx
push edx
push 0x1b
push esi
call fcn.0046c410
mov eax, dword [esp + 0x50]
push eax
push 0
push 1
push esi
call fcn.0046c410
mov ecx, dword [esp + 0x80]
push ecx
push esi
call fcn.0046c430
mov edx, dword [esp + 0x44]
push edx
push 0
push 7
push esi
call fcn.0046c410
mov eax, dword [esp + 0x60]
add esp, 0x44
push eax
push 0
push 7
push esi
call fcn.0046c410
mov ecx, dword [esp + 0x68]
push ecx
push ebx
push 2
push esi
call fcn.0046c410
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x7c]
inc eax
push edx
push eax
push 2
push esi
call fcn.0046c410
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x40]
push ecx
push edx
push 0x1b
push esi
call fcn.0046c410
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
add esp, 0x40
push eax
push ecx
push 0x1b
push esi
call fcn.0046c410
mov edx, dword [esp + 0x44]
push edx
push esi
call fcn.0046cf10
mov eax, dword [esp + 0x68]
push 0xfffffffffffffff1
push eax
push 0
push 0
push 0
push 0x17
push esi
call fcn.0046ba30
mov ecx, dword [esp + 0x7c]
push 0xfffffffffffffff0
push ecx
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xc0]
push ebx
push edx
push eax
push 0x18
push esi
call fcn.0046ba30
add esp, 0x50
push 1
push esi
call fcn.0046c940
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
push 0x19
push esi
call fcn.0046ba70
mov eax, dword [esp + 0x58]
add esp, 0x1c
test eax, eax
je 0x480bd6
inc ebx
push ebx
push eax
push ebp
call fcn.0046fa40
add esp, 0xc
mov ecx, dword [esp + 0x24]
push ecx
push esi
call fcn.0046cf10
mov edx, dword [esp + 0xa0]
mov esi, dword [esp + 0x30]
add esp, 8
cmp byte [edx], 5
jne 0x480c14
mov eax, dword [esi + 0x3c]
mov ecx, esi
test eax, eax
je 0x480c06
mov ecx, eax
mov eax, dword [ecx + 0x3c]
test eax, eax
jne 0x480bfd
mov eax, dword [ecx]
push eax
push 0
push ebp
call fcn.0047f790
add esp, 0xc
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x480c29
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00466880
add esp, 8
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
xor ecx, ecx
push 0
mov cl, byte [edi + 4]
push edx
push eax
push ecx
push ebp
mov dword [edi + 0x3c], esi
call fcn.00480250
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret