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

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xa4
test edx, edx
push ebx
push esi
mov eax, dword [edx + 0x40]
mov dword [esp + 0x34], eax
push edi
push ebp
je 0x481184
test eax, eax
je 0x481184
fld qword [esp + 0xc0]
fmul qword [0x4fa330]
mov dword [esp + 0x10], 0
cmp eax, 3
fstp qword [esp + 0x34]
jle 0x480b9b
mov dword [esp + 0x3c], 3
mov eax, dword [edx + 0x44]
mov ebx, dword [edx + 0x24]
mov ebp, dword [edx + 0x28]
add edx, 0x20
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], 0
cmp dword [esp + 0x3c], 0
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], eax
jle 0x481165
cmp dword [esp + 0x40], 0
je 0x481165
cmp dword [esp + 0x10], 0
jne 0x481165
mov ecx, dword [esp + 0x40]
lea esi, [esp + 0x24]
mov edx, dword [ecx + 4]
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x14]
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 0xc]
lea edx, [ecx + 0x30]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
mov dword [esi + 0xc], eax
lea esi, [esp + 0x14]
mov eax, dword [edx]
mov dword [esi], eax
mov ebx, dword [edx + 4]
mov dword [esi + 4], ebx
mov ebp, dword [edx + 8]
mov dword [esi + 8], ebp
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
movsx ebx, byte [ecx + 0x10]
cmp ebx, 1
je 0x480c4c
cmp ebx, 2
jl 0x480cde
cmp ebx, 3
jle 0x480c8a
jmp 0x480cde
lea eax, [esp + 0x7c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
call fcn.0049f920
add esp, 0x24
test eax, eax
jne 0x480cde
jmp 0x481153
mov eax, dword [ecx + 0x40]
mov ebp, dword [ecx + 0x44]
fld qword [esp + 0x2c]
lea edx, [esp + 0x54]
sub esp, 8
mov esi, dword [ecx + 0x48]
add ecx, 0x40
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 4], ebp
sub esp, 8
mov dword [edx + 8], esi
mov dword [edx + 0xc], eax
fsub qword [esp + 0x6c]
fstp qword [esp + 8]
fld qword [esp + 0x34]
fsub qword [esp + 0x64]
fstp qword [esp]
call fcn.0049f350
fcomp qword [0x4fa320]
add esp, 0x10
fnstsw ax
test ah, 1
jne 0x481153
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x48], 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], edx
test ecx, ecx
jle 0x481153
cmp dword [esp + 0x10], 0
jne 0x481153
mov ebp, dword [esp + 0x44]
cmp ebx, 1
mov ecx, dword [ebp + 4]
mov dword [esp + 0x44], ecx
movsx ecx, byte [ebp + 0x10]
je 0x480d38
cmp ebx, 2
jl 0x481141
cmp ebx, 3
jle 0x480ff6
jmp 0x481141
cmp ecx, 1
je 0x480d54
cmp ecx, 2
jl 0x481141
cmp ecx, 3
jle 0x480f6c
jmp 0x481141
lea eax, [esp + 0x94]
lea ecx, [ebp + 0x30]
push eax
lea edx, [ebp + 0x20]
lea eax, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.004a14b0
add esp, 0x14
test eax, eax
jle 0x480d87
mov dword [esp + 0x10], 1
jmp 0x481141
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea esi, [esp + 0x7c]
push eax
push ecx
mov ecx, 6
sub esp, 0x18
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov esi, dword [ebp + 0x34]
push edx
mov edx, dword [ebp + 0x38]
push eax
mov eax, dword [ebp + 0x3c]
lea ecx, [ebp + 0x30]
push eax
push edx
push esi
mov eax, dword [ecx]
push eax
call fcn.00481cc0
add esp, 0x50
test eax, eax
je 0x480df4
mov dword [esp + 0x10], 1
jmp 0x481141
lea eax, [esp + 0x64]
mov ecx, dword [ebp + 0x3c]
push eax
mov edx, dword [ebp + 0x38]
push ecx
mov eax, dword [ebp + 0x34]
push edx
mov ecx, dword [ebp + 0x30]
push eax
mov edx, dword [ebp + 0x2c]
push ecx
mov eax, dword [ebp + 0x28]
push edx
mov ecx, dword [ebp + 0x24]
push eax
mov edx, dword [ebp + 0x20]
push ecx
push edx
call fcn.0049f920
add esp, 0x24
test eax, eax
je 0x481141
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea esi, [esp + 0x64]
push eax
push ecx
mov ecx, 6
sub esp, 0x18
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x38]
lea ecx, [ebp + 0x30]
push eax
push edx
mov esi, dword [ecx + 4]
push esi
mov eax, dword [ecx]
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x24]
push eax
lea ecx, [ebp + 0x20]
mov eax, dword [ebp + 0x2c]
push eax
push edx
push esi
mov eax, dword [ecx]
mov ecx, dword [esp + 0x6c]
push eax
mov edx, dword [esp + 0x6c]
push ecx
mov eax, dword [esp + 0x6c]
push edx
mov ecx, dword [esp + 0x6c]
push eax
push ecx
call fcn.00481cc0
add esp, 0x50
test eax, eax
je 0x480e94
mov dword [esp + 0x10], 1
jmp 0x481141
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea esi, [esp + 0x64]
push eax
push ecx
mov ecx, 6
sub esp, 0x18
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x38]
lea ecx, [ebp + 0x30]
push eax
push edx
mov esi, dword [ecx + 4]
push esi
mov eax, dword [ecx]
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x24]
push eax
lea ecx, [ebp + 0x20]
mov eax, dword [ebp + 0x2c]
push eax
push edx
push esi
mov eax, dword [ecx]
mov ecx, dword [esp + 0x5c]
push eax
mov edx, dword [esp + 0x5c]
push ecx
mov eax, dword [esp + 0x5c]
push edx
mov ecx, dword [esp + 0x5c]
push eax
push ecx
call fcn.00481cc0
add esp, 0x50
test eax, eax
je 0x480eff
mov dword [esp + 0x10], 1
jmp 0x481141
fld qword [esp + 0x2c]
fsub qword [ebp + 0x38]
sub esp, 8
sub esp, 8
fstp qword [esp + 8]
fld qword [esp + 0x34]
fsub qword [ebp + 0x30]
fstp qword [esp]
call fcn.0049f350
fcomp qword [esp + 0x44]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x480f5f
fld qword [esp + 0x1c]
fsub qword [ebp + 0x38]
sub esp, 8
sub esp, 8
fstp qword [esp + 8]
fld qword [esp + 0x24]
fsub qword [ebp + 0x30]
fstp qword [esp]
call fcn.0049f350
fcomp qword [esp + 0x44]
add esp, 0x10
fnstsw ax
test ah, 0x41
je 0x481141
mov dword [esp + 0x10], 1
jmp 0x481141
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
add ebp, 0x20
push edx
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x28]
lea edx, [ebp + 0x20]
push eax
push esi
mov eax, dword [edx + 4]
mov edx, dword [edx]
push eax
push edx
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
lea edx, [ebp + 0x10]
push eax
push esi
mov eax, dword [edx + 4]
push eax
mov edx, dword [edx]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
mov esi, dword [ebp + 4]
push esi
mov eax, dword [ebp]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
push edx
mov ecx, dword [esp + 0x58]
push eax
mov edx, dword [esp + 0x78]
push ecx
mov eax, dword [esp + 0x78]
push edx
mov ecx, dword [esp + 0x78]
push eax
mov edx, dword [esp + 0x78]
push ecx
push edx
call fcn.004811a0
add esp, 0x5c
test eax, eax
je 0x481141
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xa4
ret
cmp ecx, 1
je 0x481012
cmp ecx, 2
jl 0x481141
cmp ecx, 3
jle 0x48109e
jmp 0x481141
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
add ebp, 0x20
push ecx
push ebx
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
lea ecx, [ebp + 0x10]
push eax
push edx
push esi
mov eax, dword [ecx]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp + 4]
push edx
mov ecx, dword [ebp]
push ecx
call fcn.004811a0
add esp, 0x5c
test eax, eax
je 0x481141
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xa4
ret
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
add ebp, 0x20
push edx
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x28]
lea edx, [ebp + 0x20]
push eax
push esi
mov eax, dword [edx + 4]
mov edx, dword [edx]
push eax
push edx
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
lea edx, [ebp + 0x10]
push eax
push esi
mov eax, dword [edx + 4]
push eax
mov edx, dword [edx]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
mov esi, dword [ebp + 4]
push esi
mov eax, dword [ebp]
mov edx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x9c]
push ecx
push edx
mov ecx, dword [esp + 0x98]
push eax
mov edx, dword [esp + 0x68]
push ecx
mov eax, dword [esp + 0x68]
push edx
mov ecx, dword [esp + 0x68]
push eax
mov edx, dword [esp + 0x68]
push ecx
mov eax, dword [esp + 0x88]
push edx
mov ecx, dword [esp + 0x88]
push eax
mov edx, dword [esp + 0x88]
push ecx
mov eax, dword [esp + 0x88]
push edx
push eax
push ebx
call fcn.004816a0
add esp, 0x70
test eax, eax
jne 0x481174
inc dword [esp + 0x48]
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x4c]
jl 0x480d02
inc dword [esp + 0x50]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x3c], eax
jg 0x480bd2
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xa4
ret
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xa4
ret
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xa4
ret