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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4add20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x12c]
mov dword [esp + 0x38], ecx
call fcn.004375b0
test eax, eax
je 0x439466
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x438f25
cmp ebx, 0xffffffff
mov dword [esp + 0x28], 1
jne 0x438f2d
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x54]
call fcn.004372a0
add esi, 0x30
xor edi, edi
push esi
lea ecx, [esp + 0x58]
mov dword [esp + 0xc4], edi
call fcn.004373e0
lea ecx, [esp + 0x54]
call fcn.004375e0
test eax, eax
jne 0x439225
lea eax, [esp + 0x40]
lea ecx, [esp + 0x54]
push eax
call fcn.00437620
push eax
call dword [0x52a34c]
test eax, eax
je 0x439444
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0048e1f6
push eax
push edi
lea ecx, [esp + 0x80]
call fcn.0042cb00
mov edx, dword [esp + 0x4c]
mov byte [esp + 0xc0], 1
push edx
call fcn.0048e1f6
push eax
push edi
lea ecx, [esp + 0xac]
call fcn.0042cb00
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x8c]
push eax
push 0x18
push ecx
call dword [0x5294a8]
mov eax, dword [esp + 0x90]
test eax, eax
jle 0x4391da
mov eax, dword [esp + 0x94]
xor esi, esi
test eax, eax
jle 0x4391ca
mov edx, dword [esp + 0xa8]
push esi
push edi
push edx
call dword [0x5294a4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
push esi
push edi
push eax
call dword [0x5294a4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4391ba
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x43912e
xor ecx, ecx
mov edx, eax
mov cl, ah
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
fild dword [esp + 0x10]
shr edx, 0x10
and edx, 0xff
fmul qword [0x508ab0]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, ebx
shr eax, 0x10
fmul qword [0x508aa8]
and eax, 0xff
shr ecx, 0x10
faddp st(1)
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
and ecx, 0xff
fmul qword [0x508aa0]
faddp st(1)
fmul qword [0x507ed8]
fld qword [0x507b18]
fsub st(1)
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul st(1)
fild dword [esp + 0x10]
fmul st(3)
faddp st(1)
call fcn.0042602c
xor edx, edx
xor ecx, ecx
mov dh, al
xor eax, eax
mov cl, byte [ebp + 9]
mov al, bh
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul st(1)
fild dword [esp + 0x10]
mov ebx, edx
fmul st(3)
faddp st(1)
call fcn.0042602c
mov edx, dword [ebp + 0xc]
and edx, 0xff
mov bl, al
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
and eax, 0xff
mov dword [esp + 0x10], eax
fmul st(1)
fild dword [esp + 0x10]
shl ebx, 8
fmul st(3)
faddp st(1)
call fcn.0042602c
mov ecx, dword [esp + 0x7c]
and eax, 0xff
or eax, ebx
push eax
push esi
fstp st(0)
push edi
push ecx
fstp st(0)
call dword [0x5294bc]
mov ebx, dword [ebp + 0xc]
jmp 0x4391ba
xor edx, edx
mov ecx, eax
mov dl, ah
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
shr ecx, 0x10
and ecx, 0xff
fmul qword [0x508ab0]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul qword [0x508aa8]
faddp st(1)
fild dword [esp + 0x10]
fmul qword [0x508aa0]
faddp st(1)
fst qword [esp + 0x2c]
fmul qword [0x507ed8]
fld qword [0x51f370]
call fcn.0048e692
fmul qword [0x507ef8]
call fcn.0042602c
and eax, 0xff
and eax, 0xff
mov edx, eax
shl edx, 8
or edx, eax
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x7c]
push edx
push esi
push edi
push eax
call dword [0x5294bc]
mov eax, dword [esp + 0x94]
inc esi
cmp esi, eax
jl 0x438fe7
mov ecx, dword [esp + 0x90]
inc edi
cmp edi, ecx
jl 0x438fdd
lea ecx, [esp + 0xa4]
call fcn.0042cc30
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 0
call fcn.0042cc30
lea ecx, [esp + 0x40]
push ecx
call dword [0x52a3ec]
push eax
lea ecx, [esp + 0x58]
call fcn.00437520
mov edx, dword [esp + 0x4c]
mov esi, dword [0x5294ac]
push edx
call esi
mov eax, dword [esp + 0x50]
push eax
call esi
jmp 0x439444
lea ecx, [esp + 0x54]
call fcn.00437b50
test eax, eax
je 0x439444
lea ecx, [esp + 0x54]
call fcn.00437b50
lea ecx, [esp + 0x2c]
mov edi, eax
push ecx
lea ecx, [esp + 0x58]
call fcn.00437680
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x2c]
test eax, eax
jbe 0x439444
mov dword [esp + 0x10], eax
xor edx, edx
mov dl, byte [edi + 3]
mov esi, edx
test esi, esi
mov dword [esp + 0x3c], esi
je 0x439432
xor ecx, ecx
mov cl, byte [edi]
mov eax, ecx
shl eax, 8
sub eax, ecx
xor ecx, ecx
cdq
idiv esi
mov cl, byte [edi + 1]
mov dword [esp + 0x24], eax
mov eax, ecx
shl eax, 8
sub eax, ecx
xor ecx, ecx
cdq
idiv esi
mov cl, byte [edi + 2]
mov dword [esp + 0x20], eax
mov eax, ecx
shl eax, 8
sub eax, ecx
cdq
fild dword [esp + 0x20]
idiv esi
fmul qword [0x508ab0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
fild dword [esp + 0x14]
test eax, eax
fmul qword [0x508aa0]
faddp st(1)
fild dword [esp + 0x24]
fmul qword [0x508aa8]
faddp st(1)
je 0x439394
mov ecx, dword [ebp + 8]
mov eax, ebx
fmul qword [0x507ed8]
fld qword [0x507b18]
shr eax, 0x10
and eax, 0xff
fsub st(1)
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
shr ecx, 0x10
and ecx, 0xff
fmul st(1)
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul st(3)
faddp st(1)
call fcn.0042602c
xor edx, edx
and eax, 0xff
mov dl, bh
mov dword [esp + 0x24], eax
and edx, 0xff
xor eax, eax
mov al, byte [ebp + 9]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
and eax, 0xff
mov dword [esp + 0x14], eax
fmul st(1)
fild dword [esp + 0x14]
fmul st(3)
faddp st(1)
call fcn.0042602c
mov ecx, dword [ebp + 8]
and ebx, 0xff
mov dword [esp + 0x14], ebx
and ecx, 0xff
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
and eax, 0xff
mov dword [esp + 0x20], eax
fmul st(1)
fild dword [esp + 0x14]
fmul st(3)
faddp st(1)
call fcn.0042602c
fstp st(0)
and eax, 0xff
fstp st(0)
mov ebx, eax
jmp 0x4393d9
fst qword [esp + 0x14]
fmul qword [0x507ed8]
fld qword [0x51f370]
call fcn.0048e692
fmul qword [0x507ef8]
call fcn.0042602c
fild dword [esp + 0x3c]
and eax, 0xff
mov ebx, eax
fdiv qword [0x51f368]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.0042602c
and eax, 0xff
mov esi, eax
mov eax, dword [esp + 0x24]
imul ebx, esi
imul eax, esi
mov ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x20]
imul eax, esi
mov ecx, eax
mov eax, 0x80808081
mov byte [edi], dl
imul ecx
add edx, ecx
mov eax, 0x80808081
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov byte [edi + 1], dl
imul ebx
add edx, ebx
mov ebx, dword [ebp + 0xc]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [edi + 2], dl
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x439264
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004373e0
lea ecx, [esp + 0x54]
mov dword [esp + 0xc0], 0xffffffff
call fcn.004375a0
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8