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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 0
push 1
push 0x74612b
push edi
push ebx
call fcn.005ecbe0
add esp, 0x14
mov byte [esp + 4], al
test al, al
mov dword [esp], ebx
jne 0x603a85
xor eax, eax
inc eax
mov dword [esp + 0x3c], eax
push 0
push 1
push 0x7461b0
mov esi, edi
push edi
push ebx
call fcn.005ecbe0
add esp, 0x14
test al, al
jne 0x603a9f
cmp esi, 3
je 0x603818
mov eax, esi
cmp esi, 1
je 0x603ab0
test eax, eax
je 0x603b22
cvtsi2sd xmm0, dword [esp + 0x3c]
movsd qword [esp + 0x50], xmm0
xor edi, edi
xor ebx, ebx
mov eax, dword [esp]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
mov dword [esp], eax
add eax, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
lea eax, [esi - 1]
mov dword [esp + 0x24], eax
xor ecx, ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp]
mov dword [esp + 0x18], ecx
movsx ebx, byte [eax + ecx]
mov eax, ebx
add al, 0xc6
cmp al, 0xf6
jb 0x60356c
mov eax, 0xcccccccc
cmp eax, dword [esp + 4]
mov eax, 0xccccccc
sbb eax, dword [esp + 8]
jl 0x603b22
mov eax, dword [esp + 4]
mov edx, 0xa
mul edx
add ebx, 0xffffffd0
mov ecx, dword [esp + 8]
lea esi, [ecx + ecx*4]
lea ecx, [edx + esi*2]
mov edx, ebx
sar edx, 0x1f
xor edi, edi
dec edi
sub edi, ebx
mov esi, SysReAllocString
sbb esi, edx
mov dword [esp + 4], eax
cmp edi, eax
mov eax, ecx
mov dword [esp + 8], ecx
sbb esi, ecx
jl 0x603b22
add dword [esp + 4], ebx
adc dword [esp + 8], edx
mov ecx, dword [esp + 0x18]
inc ecx
dec dword [esp + 0x24]
cmp dword [esp + 0x1c], ecx
jne 0x6034e8
jmp 0x603867
mov edx, dword [esp + 0x18]
test edx, edx
sete al
sub dword [esp + 0x1c], edx
mov ecx, dword [esp]
add ecx, edx
cmp bl, 0x2e
je 0x60387e
mov dword [esp + 0x20], ecx
xor ebx, ebx
test al, al
mov eax, dword [esp + 8]
cmovne eax, ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
cmovne eax, ebx
mov dword [esp + 4], eax
jne 0x603b22
xor eax, eax
inc eax
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], 2
push 0
push 2
push 0x746131
mov esi, dword [esp + 0x28]
push esi
mov ebx, dword [esp + 0x30]
push ebx
call fcn.005ecbe0
add esp, 0x14
test al, al
jne 0x60367b
push 0
push 2
push 0x746134
push esi
push ebx
call fcn.005ecbe0
add esp, 0x14
test al, al
jne 0x6037d1
push 0
push 2
push 0x745962
push esi
push ebx
call fcn.005ecbe0
add esp, 0x14
test al, al
jne 0x6037db
push 0
push 1
push 0x74613b
push esi
push ebx
call fcn.005ecbe0
add esp, 0x14
test al, al
jne 0x6037e5
push 0
push 1
push 0x746139
push esi
push ebx
call fcn.005ecbe0
add esp, 0x14
test al, al
jne 0x60380a
push 0
push 1
push 0x746137
push esi
push ebx
call fcn.005ecbe0
add esp, 0x14
test al, al
je 0x603b22
jmp 0x603811
mov eax, 0x793778
mov ecx, dword [esp + 0x18]
sub dword [esp + 0x1c], ecx
jb 0x603963
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], eax
mov edi, dword [esp + 4]
mov eax, edi
mov ebx, dword [esp + 8]
or eax, ebx
je 0x603966
mov esi, dword [esp + 0x3c]
mov ecx, esi
sar ecx, 0x1f
mov eax, edi
mul esi
mov dword [esp], eax
imul ecx, edi
add ecx, edx
imul ebx, esi
add ebx, ecx
mov ecx, dword [esp + 0x30]
mov eax, ecx
sar eax, 0x1f
mov edi, ecx
xor edi, eax
mov esi, dword [esp + 0x24]
xor esi, eax
sub esi, eax
sbb edi, eax
mov eax, ebx
sar eax, 0x1f
xor ecx, ebx
xor ebx, eax
mov edx, dword [esp]
xor edx, eax
sub edx, eax
mov dword [esp], edx
sbb ebx, eax
mov eax, esi
mul dword [esp]
mov dword [esp + 8], eax
mov dword [esp + 0x34], edx
mov edx, dword [esp]
mov dword [esp + 4], ecx
mov eax, ecx
shr eax, 0x1f
cmp eax, edx
mov ecx, 0
sbb ecx, ebx
jae 0x60373b
xor ecx, ecx
dec ecx
add eax, ecx
mov ecx, SysReAllocString
adc ecx, 0
push ebx
push edx
push ecx
push eax
call fcn.00670df0
cmp eax, esi
sbb edx, edi
mov edx, dword [esp]
jb 0x603a60
imul esi, ebx
mov eax, dword [esp + 0x34]
add eax, esi
imul edi, edx
add edi, eax
mov edx, dword [esp + 8]
mov eax, edx
neg eax
mov ecx, 0
sbb ecx, edi
cmp dword [esp + 4], 0
cmovns ecx, edi
cmovns eax, edx
xor edx, edx
dec edx
add edx, eax
mov esi, SysReAllocString
adc esi, ecx
add edx, 2
adc esi, 0
cmp edx, 2
sbb esi, 0
mov edi, dword [esp + 0xc]
jb 0x603a20
mov ebx, dword [esp + 0x14]
add ebx, eax
mov esi, dword [esp + 0x10]
adc esi, ecx
seto dl
mov eax, esi
sar eax, 0x1f
lea ecx, [eax - 0x80000000]
test dl, dl
cmove eax, ebx
test dl, dl
cmove ecx, esi
mov edx, edi
mov esi, dword [esp + 0x38]
or edx, esi
jne 0x603977
mov edi, eax
mov ebx, ecx
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x6034ba
jmp 0x6037f6
mov eax, 0x793788
jmp 0x603680
mov eax, 0x793798
jmp 0x603680
mov eax, 0x7937a8
xor ecx, ecx
inc ecx
mov dword [esp + 0x18], ecx
jmp 0x603680
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0x7937b8
jmp 0x6037ea
mov eax, 0x7937c8
jmp 0x6037ea
mov ecx, dword [esp]
movzx eax, word [ecx]
xor ax, word [0x74612d]
mov cl, byte [ecx + 2]
xor cl, byte [0x74612f]
movzx ecx, cl
or cx, ax
jne 0x6034a7
xor eax, eax
xor ecx, ecx
dec ecx
mov edx, ecx
add edx, 1
adc eax, 0x7fffffff
cmp byte [esp + 4], 0
cmove edx, ecx
mov ecx, SysReAllocString
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x603802
mov eax, dword [esp]
cmp dword [esp + 0x20], eax
sete al
mov dword [esp + 0x1c], 0
jmp 0x60358b
mov eax, dword [esp + 0x1c]
mov dword [esp], ecx
add eax, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], 0
xor eax, eax
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], 0
xor ebx, ebx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
sub eax, 1
mov dword [esp + 0x24], eax
jb 0x603acf
mov eax, dword [esp]
movsx esi, byte [eax + 1]
inc eax
mov dword [esp], eax
mov ecx, 0xa
mov eax, dword [esp + 0xc]
mul ecx
mov dword [esp + 0x38], ebx
lea ecx, [ebx + ebx*4]
lea edi, [edx + ecx*2]
mov edx, esi
mov ecx, esi
sar ecx, 0x1f
add eax, esi
adc edi, ecx
mov esi, edi
add dl, 0xc6
mov dword [esp + 0x20], edx
cmp dl, 0xf6
setb cl
mov edx, 0xcccccccc
mov edi, dword [esp + 0x28]
cmp edx, edi
mov edx, 0xccccccc
mov ebx, dword [esp + 0x2c]
sbb edx, ebx
setl dl
or dl, cl
mov ecx, edx
add eax, 0xffffffd0
mov dword [esp + 0x30], eax
adc esi, 0xffffffff
mov dword [esp + 0x34], esi
mov eax, edi
mov edx, 0xa
mul edx
lea esi, [ebx + ebx*4]
lea edx, [edx + esi*2]
test cl, cl
cmove ebx, edx
mov dword [esp + 0x2c], ebx
cmove edi, eax
mov dword [esp + 0x28], edi
mov ebx, dword [esp + 0x38]
cmove ebx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
cmove eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
cmp byte [esp + 0x20], 0xf5
ja 0x6038a4
jmp 0x603ad6
int3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
jmp 0x6037a9
movd xmm0, edi
movd xmm1, esi
movss xmm2, dword [esp + 0x28]
movss xmm3, dword [esp + 0x2c]
movss xmm4, dword [esp + 0x24]
movss xmm5, dword [esp + 0x30]
punpckldq xmm0, xmm1
movq qword [esp + 0x80], xmm0
fild qword [esp + 0x80]
fstp qword [esp + 0x78]
unpcklps xmm2, xmm3
movsd xmm0, qword [esp + 0x78]
movlps qword [esp + 0x70], xmm2
mulsd xmm0, qword [esp + 0x50]
fild qword [esp + 0x70]
fstp qword [esp + 0x68]
divsd xmm0, qword [esp + 0x68]
unpcklps xmm4, xmm5
movlps qword [esp + 0x60], xmm4
fild qword [esp + 0x60]
fstp qword [esp + 0x58]
mulsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [0x744c08]
ucomisd xmm1, xmm0
jae 0x603b2d
xor esi, esi
ucomisd xmm0, qword [0x744c10]
mov edx, SysReAllocString
cmovb edx, esi
mov dword [esp + 0x10], edx
mov edx, 0xffffffff
cmovae esi, edx
mov dword [esp + 0x14], esi
jmp 0x603b53
xor edx, edx
dec edx
add edx, dword [esp + 0x14]
mov esi, SysReAllocString
adc esi, dword [esp + 0x10]
add edx, 2
adc esi, 0
xor edi, edi
xor ebx, ebx
inc ebx
cmp ebx, edx
sbb edi, esi
jb 0x60396e
mov edx, dword [esp + 0x14]
xor edx, eax
mov esi, dword [esp + 0x10]
xor esi, ecx
or esi, edx
mov edi, dword [esp + 0xc]
je 0x6037a9
int3
xor edx, edx
dec edx
mov eax, edx
add eax, 1
mov ecx, SysReAllocString
adc ecx, 0
cmp dword [esp + 4], 0
cmovns eax, edx
mov edx, SysReAllocString
cmovns ecx, edx
jmp 0x603763
test edi, edi
je 0x603bd7
mov esi, edi
inc dword [esp]
dec esi
xor eax, eax
dec eax
mov dword [esp + 0x3c], eax
jmp 0x60348b
test esi, esi
je 0x603bda
inc dword [esp]
dec esi
jmp 0x60348b
mov eax, dword [esp]
cmp byte [eax], 0x30
jne 0x6034a7
mov eax, dword [ebp + 8]
mov byte [eax], 1
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
jmp 0x603802
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov edx, eax
xor edx, 1
mov esi, dword [esp + 0x2c]
or edx, esi
xor edi, edi
or dword [esp + 0x18], edx
cmove ebx, edi
mov ecx, dword [esp + 0xc]
cmove ecx, edi
mov dword [esp + 0xc], ecx
cmove esi, edi
cmove eax, edi
mov ecx, dword [esp + 8]
cmove ecx, edi
mov dword [esp + 8], ecx
mov ecx, dword [esp + 4]
cmove ecx, edi
mov dword [esp + 4], ecx
mov ecx, dword [esp]
mov dword [esp + 0x20], ecx
jne 0x6035b8
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x603802
maxsd xmm0, qword [0x744c10]
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
fisttp qword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], edx
xor edx, edx
dec edx
add edx, dword [esp + 0x14]
mov esi, SysReAllocString
adc esi, dword [esp + 0x10]
add edx, 2
adc esi, 0
cmp edx, 2
sbb esi, 0
jae 0x603ba5
xor edx, edx
dec edx
add edx, eax
mov esi, SysReAllocString
adc esi, ecx
add edx, 2
adc esi, 0
xor edi, edi
xor ebx, ebx
inc ebx
cmp ebx, edx
sbb edi, esi
jb 0x603bca
mov edi, dword [esp + 0x14]
xor eax, edi
mov ebx, dword [esp + 0x10]
xor ecx, ebx
or ecx, eax
je 0x6037bb
int3
add eax, dword [esp + 0x14]
adc ecx, dword [esp + 0x10]
seto dl
mov edi, ecx
sar edi, 0x1f
lea ebx, [edi - 0x80000000]
test dl, dl
cmove edi, eax
test dl, dl
cmove ebx, ecx
jmp 0x6037bb
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jmp 0x6037bb
int3
int3