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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xcc
call sub.msvcrt.dll_localeconv
mov esi, dword [eax]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp + 0xa4], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xe8]
fldz
fstp qword [esp + 0xb8]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xe0]
mov ecx, eax
mov dword [esp + 0xb0], eax
movsx edx, byte [ecx]
cmp dl, 0x2d
ja case.0x410308.1
movzx eax, dl
jmp dword [eax*4 + 0x41c18c]
mov eax, dword [esp + 0xe0]
xor ecx, ecx
mov dword [esp + 0xa4], 6
mov dword [esp + 0x3c], 0
mov dword [esp + 0xb0], eax
mov esi, dword [esp + 0xe4]
test esi, esi
je 0x41034e
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0xe4]
mov dword [esi], eax
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jne 0x410396
test ecx, ecx
je 0x410384
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf0]
mov dword [esp], eax
call fcn.00411f60
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call fcn.0040f370
mov eax, dword [esp + 0xa4]
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
or dword [esp + 0xa4], 8
jmp 0x410356
mov dword [esp + 0x3c], 0
lea eax, [ecx + 1]
mov dword [esp + 0xb0], eax
movsx edx, byte [ecx + 1]
test dl, dl
je case.0x410308.0
mov ecx, eax
cmp dl, 0x30
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], 0
je 0x4109f2
mov eax, dword [esp + 0xe8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x78], eax
lea eax, [edx - 0x30]
cmp al, 9
ja 0x411883
mov eax, dword [esp + 0x28]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x20], esi
xor ebx, ebx
mov esi, edi
add eax, 1
jmp 0x410425
lea ecx, [ebp + ebp*4]
lea ebp, [edx + ecx*2 - 0x30]
mov dword [esp + 0xb0], eax
movsx edx, byte [eax]
add ebx, 1
mov edi, eax
add eax, 1
lea ecx, [edx - 0x30]
cmp cl, 9
ja 0x410470
cmp ebx, 8
jle 0x410403
cmp ebx, 0xf
jg 0x41040b
lea ecx, [esi + esi*4]
lea esi, [edx + ecx*2 - 0x30]
jmp 0x41040b
mov dword [esp + 0x3c], 1
jmp 0x4103a8
add ecx, 1
mov dword [esp + 0xb0], ecx
movsx edx, byte [ecx]
cmp dl, 0x2d
jbe 0x410305
nop
lea esi, [esi]
mov dword [esp + 0x3c], 0
jmp 0x4103c0
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x20]
mov ecx, edi
movsx eax, byte [esi]
cmp eax, edx
mov dword [esp + 0x30], eax
je 0x410a40
mov dword [esp + 0x20], ebx
xor edi, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x48], 0
mov eax, edx
and eax, 0xffffffdf
cmp eax, 0x45
jne 0x4105c5
mov eax, dword [esp + 0x20]
or eax, edi
or eax, dword [esp + 0x38]
je 0x4106c0
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xe0], eax
add eax, 1
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xe0]
movsx edx, byte [eax + 1]
cmp dl, 0x2b
je 0x411824
cmp dl, 0x2d
je 0x410be4
mov dword [esp + 0x4c], 0
lea eax, [edx - 0x30]
cmp eax, 9
ja 0x410d10
cmp edx, 0x30
jne 0x410527
mov eax, dword [esp + 0xb0]
add eax, 1
mov dword [esp + 0xb0], eax
movsx edx, byte [eax]
add eax, 1
cmp edx, 0x30
je 0x410515
lea ecx, [edx - 0x31]
xor eax, eax
cmp ecx, 8
ja 0x4105c7
mov eax, dword [esp + 0xb0]
lea ecx, [edx - 0x30]
lea esi, [eax + 1]
mov dword [esp + 0xb0], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], esi
mov esi, eax
movzx eax, byte [eax + 1]
movsx edx, al
sub eax, 0x30
cmp al, 9
ja 0x41059b
mov eax, esi
mov esi, edx
add eax, 2
mov dword [esp + 0x58], edi
lea esi, [esi]
lea edx, [ecx + ecx*4]
mov edi, eax
lea ecx, [esi + edx*2 - 0x30]
mov dword [esp + 0xb0], eax
movzx edx, byte [eax]
add eax, 1
movsx esi, dl
sub edx, 0x30
cmp dl, 9
jbe 0x410570
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x58]
mov edx, esi
mov esi, dword [esp + 0x50]
mov eax, 0x4e1f
sub esi, dword [esp + 0x54]
cmp esi, 8
jg 0x4105b6
cmp ecx, 0x4e1f
cmovle eax, ecx
mov esi, dword [esp + 0x4c]
mov ecx, eax
neg ecx
test esi, esi
cmovne eax, ecx
jmp 0x4105c7
xor eax, eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x410706
mov eax, dword [esp + 0x38]
or eax, edi
jne 0x4106fa
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4106c0
cmp edx, 0x4e
je 0x410608
jle 0x4106b4
cmp edx, 0x69
je 0x411958
cmp edx, 0x6e
jne 0x4106c0
lea ebx, [esp + 0xb0]
mov dword [esp + 4], 0x41c189
mov dword [esp], ebx
call fcn.00411f10
test eax, eax
je 0x4106c0
mov eax, dword [esp + 0xe8]
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xb0]
mov dword [esp + 0xa4], 4
mov eax, dword [eax + 8]
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], eax
add eax, 1
mov dword [esi], eax
cmp byte [edx], 0x28
je 0x411cf8
mov ebx, dword [esp + 0xec]
mov dword [ebx], eax
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x410333
mov ebp, dword [esp + 0x78]
test ebp, ebp
jne 0x410ce0
mov edx, dword [esp + 0xa4]
xor eax, eax
mov edi, dword [ecx + 0x10]
and edx, 0xfffffff8
test edi, edi
setg al
add eax, eax
or eax, edx
test al, 0x30
jne 0x4106e5
mov dword [esp + 0xa4], eax
jmp 0x410333
cmp edx, 0x49
je 0x411958
lea esi, [esi]
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xa4], 6
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0xb0], eax
jmp 0x410333
or eax, 0x40
mov dword [esp + 0xa4], eax
call sub.msvcrt.dll__errno
mov dword [eax], 0x22
mov ecx, dword [esp + 0xb4]
jmp 0x410333
sub eax, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0xa4], 1
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xe8]
mov eax, dword [eax + 0xc]
and eax, 3
mov esi, eax
sub esi, edi
cmp eax, 2
mov dword [esp + 0x68], esi
je 0x410751
mov esi, edi
add esi, 1
cmp eax, 3
mov dword [esp + 0x68], esi
je 0x410751
test eax, eax
sete al
movzx eax, al
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x20]
test ebx, ebx
mov esi, 0x10
mov dword [esp + 0x80], ebp
cmove ebx, eax
cmp eax, 0x10
cmovle esi, eax
xor edx, edx
mov dword [esp + 0x84], edx
cmp esi, 9
fild qword [esp + 0x80]
fst qword [esp + 0xb8]
jle 0x4107b5
fmul qword [esi*8 + 0x41bff8]
xor edx, edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], eax
fild qword [esp + 0x80]
faddp st(1)
fstp qword [esp + 0xb8]
jmp 0x4107b7
fstp st(0)
cmp dword [esp + 0x20], 0xf
jg 0x4107c9
cmp dword [esp + 0x2c], 0x35
jle 0x410943
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x20]
sub edx, esi
add eax, edx
cmp eax, 0
jle 0x41173f
mov edx, eax
and edx, 0xf
je 0x4107fa
fld qword [esp + 0xb8]
fmul qword [edx*8 + 0x41c040]
fstp qword [esp + 0xb8]
and eax, 0xfffffff0
jne 0x410b26
fld qword [esp + 0xb8]
xor esi, esi
lea eax, [esp + 0xa8]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xac]
mov dword [esp + 8], eax
fstp qword [esp]
call fcn.0040fbb0
mov ecx, dword [esp + 0xa8]
add esi, dword [esp + 0xac]
mov edi, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0xac], esi
mov esi, ecx
sub esi, edi
test esi, esi
mov dword [esp + 0xb4], eax
jle 0x410879
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0040fce0
mov ecx, edi
add esi, dword [esp + 0xac]
mov dword [esp + 0xa8], edi
mov edx, esi
mov dword [esp + 0xac], esi
lea eax, [ecx + edx]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x6c], eax
mov eax, dword [esp + 0xe8]
mov esi, dword [esp + 0x6c]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
add eax, 1
cmp esi, eax
jg 0x41165a
mov eax, dword [esp + 0xe8]
mov eax, dword [eax + 4]
cmp esi, eax
mov dword [esp + 0x48], eax
jge 0x411856
mov esi, edx
sub esi, eax
cmp esi, 0
jle 0x410c68
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0040f7e0
add dword [esp + 0xa8], esi
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x410d25
mov eax, dword [esp + 0x6c]
add eax, 1
cmp dword [esp + 0x48], eax
jle 0x410d25
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0xec]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0xa4], 0x50
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [eax], ebx
jmp 0x410680
cmp dword [esp + 0x58], 0
je 0x411863
jle 0x410c99
cmp dword [esp + 0x58], 0x16
jg 0x411898
mov eax, dword [esp + 0x58]
mov edx, dword [eax*4 + 0x41c260]
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x411a90
tzcnt ecx, eax
mov eax, 0x35
sub eax, ecx
mov edi, dword [esp + 0x58]
add eax, edx
fld qword [esp + 0xb8]
cmp eax, 0x35
setle al
lea ecx, [esp + 0xa4]
movzx eax, al
fmul qword [edi*8 + 0x41c040]
mov edi, dword [esp + 0x68]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
fstp qword [esp + 0xb8]
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov dword [esp], eax
lea eax, [esp + 0xb8]
call fcn.0040fee0
test eax, eax
jne 0x4106fa
xor eax, eax
jmp 0x4107cd
movzx eax, byte [ecx + 1]
cmp al, 0x58
je 0x411698
add ecx, 1
cmp al, 0x78
je 0x411698
lea esi, [esi]
mov eax, ecx
mov dword [esp + 0xb0], ecx
add ecx, 1
movsx edx, byte [ecx - 1]
cmp dl, 0x30
je 0x410a10
xor ecx, ecx
test dl, dl
je 0x410333
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], 1
jmp 0x4103d5
movzx eax, byte [esi + 1]
test al, al
je 0x411be2
cmp al, byte [ecx + 1]
jne 0x410489
mov eax, 1
jmp 0x410a69
cmp dl, byte [ecx + eax]
jne 0x410b07
add eax, 1
movzx edx, byte [esi + eax]
mov edi, eax
test dl, dl
jne 0x410a60
add ecx, edi
test ebx, ebx
mov dword [esp + 0xb0], ecx
movsx edx, byte [ecx]
je 0x410c0d
mov dword [esp + 0x20], ebx
xor edi, edi
mov dword [esp + 0x30], 0
lea esi, [edx - 0x30]
cmp esi, 9
mov dword [esp + 0x48], 1
ja 0x41049f
mov ecx, dword [esp + 0xb0]
add edi, 1
test esi, esi
je 0x411945
add dword [esp + 0x30], edi
cmp edi, 1
mov eax, dword [esp + 0x20]
je 0x411b8b
add edi, eax
mov dword [esp + 0x20], edi
sub edi, 1
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x40]
jmp 0x410af0
lea ebp, [ebp + ebp*4]
add ebp, ebp
cmp eax, edi
je 0x411b7c
add eax, 1
lea edx, [eax - 1]
cmp edx, 8
jle 0x410ae2
cmp eax, 0x10
jg 0x410ae8
lea ebx, [ebx + ebx*4]
add ebx, ebx
jmp 0x410ae8
mov edx, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], 0
mov dword [esp + 0x48], 0
jmp 0x41049f
sar eax, 4
cmp eax, 0xf
jle 0x411c6c
fld qword [0x41c160]
mov ecx, eax
xor edi, edi
lea esi, [esi]
mov edx, dword [esp + 0xbc]
sub ecx, 0x10
mov esi, edx
and edx, 0x800fffff
or edx, 0x3ff00000
and esi, 0x7ff00000
mov dword [esp + 0xbc], edx
shr esi, 0x14
cmp ecx, 0xf
fld qword [esp + 0xb8]
lea edi, [edi + esi - 0x3ff]
fmul st(1)
fstp qword [esp + 0xb8]
jg 0x410b40
fstp st(0)
and eax, 0xf
mov ecx, dword [esp + 0xbc]
mov edx, ecx
and ecx, 0x800fffff
and edx, 0x7ff00000
or ecx, 0x3ff00000
shr edx, 0x14
lea esi, [edi + edx - 0x3ff]
xor edx, edx
mov dword [esp + 0xbc], ecx
test eax, eax
fld qword [esp + 0xb8]
je 0x41080c
test al, 1
je 0x410bd1
fmul qword [edx*8 + 0x41c140]
add edx, 1
sar eax, 1
jne 0x410bc6
fst qword [esp + 0xb8]
jmp 0x41080c
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0xe0]
add eax, 2
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xe0]
movsx edx, byte [eax + 2]
jmp 0x4104fa
cmp edx, 0x30
jne 0x411cb1
lea eax, [ecx + 1]
lea esi, [esi]
mov dword [esp + 0xb0], eax
movsx edx, byte [eax]
mov edi, eax
sub edi, ecx
add eax, 1
cmp edx, 0x30
je 0x410c20
lea eax, [edx - 0x31]
cmp eax, 8
ja 0x411911
mov eax, dword [esp + 0xb0]
lea esi, [edx - 0x30]
mov dword [esp + 0x30], edi
mov edi, 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
mov ecx, eax
jmp 0x410ab6
je 0x4108e9
add ecx, esi
test ecx, ecx
mov dword [esp + 0xa8], ecx
jle 0x411c73
mov eax, dword [esp + 0xb4]
neg esi
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0040fce0
jmp 0x4108e9
mov edi, dword [esp + 0x58]
cmp edi, 0xffffffea
mov eax, edi
jl 0x4107cd
neg eax
fld qword [esp + 0xb8]
fdiv qword [eax*8 + 0x41c040]
lea eax, [esp + 0xa4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
fstp qword [esp + 0xb8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
jmp 0x4109bf
mov dword [ecx + 0x10], 0
mov dword [esp + 0xa4], 0x50
call sub.msvcrt.dll__errno
mov ecx, dword [esp + 0xb4]
mov dword [eax], 0x22
jmp 0x410333
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xb0], eax
xor eax, eax
jmp 0x4105c7
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], 1
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00411d90
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x30], 0
mov dword [esp + 0x64], eax
add eax, 0xc
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x2c]
add eax, 1
mov dword [esp + 0x74], eax
mov eax, ebx
neg eax
test ebx, ebx
cmovns eax, esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
and eax, 1
mov dword [esp + 0x7c], eax
jmp 0x410f72
mov esi, dword [esp + 0x68]
test esi, esi
je 0x41115f
mov eax, dword [esp + 0x7c]
xor eax, ebx
mov dword [esp + 0x54], eax
je 0x4119c0
test ebx, ebx
je 0x4113e0
fld1
xor esi, esi
fst qword [esp + 0x30]
mov dword [esp + 0xa4], 0x21
fstp qword [esp + 0x40]
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], 0x20
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
add ebx, eax
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x410e11
cmp dword [esp + 0x2c], eax
jg 0x411592
lea eax, [esp + 0xa0]
fld qword [esp + 0x30]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x9c]
mov dword [esp + 8], eax
fstp qword [esp]
call fcn.0040fbb0
mov ebp, eax
mov eax, dword [esp + 0x9c]
test eax, eax
js 0x4115c7
je 0x410e54
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0040f7e0
mov ebp, eax
mov ebx, dword [esp + 0xb4]
test esi, esi
mov dword [esp + 4], ebp
mov dword [esp], ebx
je 0x4112f0
call fcn.0040f940
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx + 0x10]
test ecx, ecx
mov dword [esp + 0xb4], eax
jne 0x410ec0
lea ecx, [edx - 1]
cmp ecx, dword [eax + 0x10]
jge 0x410ea0
add edx, 3
bsr ecx, dword [eax + edx*4 + 4]
bsr edx, dword [ebx + edx*4 + 4]
xor ecx, 0x1f
xor edx, 0x1f
cmp ecx, edx
jle 0x410ec0
mov esi, dword [esp + 0x48]
cmp dword [esp + 0x6c], esi
jne 0x411390
sub dword [esp + 0xa8], 1
mov dword [esp + 0x38], 1
nop
mov dword [esp], ebp
call fcn.0040f370
mov dword [esp], ebx
call fcn.0040f370
mov edx, dword [esp + 0x54]
test edx, edx
jne 0x4111db
mov eax, dword [esp + 0x50]
test eax, eax
je 0x410f32
mov eax, dword [esp + 0xac]
add eax, dword [esp + 0xa8]
cmp dword [esp + 0x60], eax
jne 0x410f32
fld qword [esp + 0x30]
fmul qword [0x41c2d0]
fld qword [esp + 0x40]
fsub dword [0x41c2c4]
fld st(1)
fchs
fucompi st(1)
jbe 0x411560
fstp st(0)
fld qword [esp + 0x40]
fucompi st(1)
fstp st(0)
jbe 0x410f32
jmp 0x41157e
fstp st(0)
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0
test eax, eax
je 0x4113c4
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040f370
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0040f370
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0040f370
mov dword [esp], edi
call fcn.0040f370
mov esi, dword [esp + 0x64]
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.0040f2a0
mov edx, dword [esi + 0x10]
mov esi, dword [esp + 0x70]
lea edx, [edx*4 + 8]
mov dword [esp + 8], edx
mov dword [esp + 0x28], eax
add eax, 0xc
mov dword [esp + 4], esi
xor esi, esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0xb4]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.0040f2a0
mov ebx, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb4]
lea edx, [ebx + 0xc]
mov ecx, dword [eax + 0x10]
add eax, 0xc
mov dword [esp], edx
mov dword [esp + 4], eax
lea ecx, [ecx*4 + 8]
mov dword [esp + 8], ecx
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0xa8]
mov dword [esp], 1
sub ebp, edi
add edi, dword [esp + 0xac]
call fcn.0040f4c0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
test eax, eax
cmovg esi, eax
test edi, edi
js 0x411380
mov eax, dword [esp + 0x4c]
mov edx, esi
lea ebx, [eax + edi]
mov eax, dword [esp + 0x74]
add edi, ebp
sub edi, dword [esp + 0x2c]
sub eax, ebp
cmp dword [esp + 0x48], edi
jle 0x41103d
sub edi, dword [esp + 0x48]
add eax, edi
lea edi, [ebx + eax]
add edx, eax
cmp edi, edx
mov eax, edx
cmovle eax, edi
cmp eax, ebx
cmovg eax, ebx
test eax, eax
jle 0x411058
sub edi, eax
sub edx, eax
sub ebx, eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4110a4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], edx
mov dword [esp], eax
call fcn.0040f640
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x24], eax
call fcn.0040f4f0
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
mov dword [esp + 0x40], eax
call fcn.0040f370
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x20], eax
sub edi, dword [esp + 0x30]
cmp edi, 0
jle 0x411354
mov eax, dword [esp + 0x20]
mov dword [esp + 4], edi
mov dword [esp + 0x30], edx
mov dword [esp], eax
call fcn.0040f7e0
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], eax
test esi, esi
je 0x4110ed
mov eax, dword [esp + 0x28]
mov dword [esp + 4], esi
mov dword [esp + 0x30], edx
mov dword [esp], eax
call fcn.0040f640
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
test edx, edx
jle 0x411105
mov eax, dword [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040f7e0
mov dword [esp + 0x28], eax
test ebx, ebx
jle 0x41111d
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0040f7e0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040f940
cmp dword [eax + 0x10], 1
mov edi, eax
jle 0x4111d0
mov eax, dword [esp + 0x24]
mov ebx, dword [edi + 0xc]
mov dword [edi + 0xc], 0
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0040f8f0
test eax, eax
jle 0x410da0
test eax, eax
js 0x4119db
je 0x411abd
mov eax, dword [esp + 0x24]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00411e80
fld dword [0x41c2c0]
fucompi st(1)
jb 0x411490
fstp st(0)
test ebx, ebx
jne 0x411600
mov dword [esp + 0x54], 0
cmp ebp, 1
jle 0x411ba9
fld1
mov esi, 1
fst qword [esp + 0x30]
mov dword [esp + 0x50], 0
fstp qword [esp + 0x40]
mov dword [esp + 0x5c], 0x10
jmp 0x410deb
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x41113d
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x411715
mov eax, dword [esp + 0xac]
mov ebx, dword [esp + 0xec]
mov dword [ebx], eax
mov dword [esp], ebp
call fcn.0040f370
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0040f370
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0040f370
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.0040f370
mov dword [esp], edi
call fcn.0040f370
mov eax, dword [esp + 0xe8]
mov ebx, dword [esp + 0xac]
cmp dword [eax + 8], ebx
jge 0x41066d
mov eax, dword [esp + 0xe8]
mov eax, dword [eax + 0xc]
and eax, 3
cmp eax, 2
je 0x411b6b
cmp eax, 3
je 0x411aac
cmp eax, 1
je 0x411662
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call fcn.0040f370
mov eax, dword [esp + 0xe8]
mov ebx, dword [esp + 0xec]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xa4], 0x11
mov eax, dword [eax + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0xe8]
mov ebx, dword [esp + 0xf0]
mov ecx, dword [eax]
lea eax, [ecx + 0x1f]
sar eax, 5
lea edx, [ebx + eax*4]
mov eax, ebx
cmp ebx, edx
jae 0x4112d3
add eax, 4
cmp edx, eax
mov dword [eax - 4], 0xffffffff
ja 0x4112c5
and ecx, 0x1f
je 0x4112e4
mov eax, 0x20
sub eax, ecx
mov ecx, eax
shr dword [edx - 4], cl
xor ecx, ecx
jmp 0x410674
call fcn.00412050
mov edx, dword [eax + 0x10]
mov dword [esp + 0xb4], eax
lea ecx, [edx - 1]
cmp ecx, dword [ebx + 0x10]
jge 0x411322
add edx, 3
bsr ecx, dword [eax + edx*4 + 4]
bsr edx, dword [ebx + edx*4 + 4]
xor ecx, 0x1f
xor edx, 0x1f
cmp ecx, edx
jge 0x410ec0
mov esi, dword [esp + 0x38]
test esi, esi
je 0x411630
mov eax, dword [esp + 0xa8]
add eax, 1
cmp dword [esp + 0x2c], eax
mov dword [esp + 0xa8], eax
mov eax, 0
cmovne eax, esi
mov dword [esp + 0x38], eax
jmp 0x410ec0
je 0x4110cd
mov eax, dword [esp + 0x20]
neg edi
mov dword [esp + 4], edi
mov dword [esp + 0x30], edx
mov dword [esp], eax
call fcn.0040fce0
mov edx, dword [esp + 0x30]
jmp 0x4110cd
mov edx, esi
mov ebx, dword [esp + 0x4c]
sub edx, edi
jmp 0x411025
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0040f7e0
mov dword [esp], ebp
sub dword [esp + 0xac], 1
sub dword [esp + 0x6c], 1
mov dword [esp + 0xb4], eax
call fcn.0040f370
mov dword [esp], ebx
call fcn.0040f370
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call fcn.0040fe00
mov dword [esp + 0x30], eax
jmp 0x410f46
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x6c], eax
mov dword [esp + 0xa4], 0x11
je 0x41119d
xor edx, edx
mov esi, dword [esp + 0xb4]
cmp dword [esp + 0x2c], 0x1f
mov eax, dword [esp + 0x2c]
jle 0x411437
mov ebx, dword [esi + 0x14]
test ebx, ebx
jne 0x41119d
mov eax, dword [esp + 0x2c]
xor edx, edx
jmp 0x41142c
mov ecx, dword [esi + edx*4 + 0x14]
test ecx, ecx
jne 0x41119d
sub eax, 0x20
add edx, 1
cmp eax, 0x1f
jg 0x411420
cmp eax, 1
jle 0x411456
lea edx, [esi + edx*4]
sub eax, 1
mov ebx, dword [edx + 0x14]
tzcnt ecx, ebx
shr ebx, cl
cmp eax, ecx
mov dword [edx + 0x14], ebx
jg 0x41119d
mov eax, dword [esp + 0x6c]
mov dword [esp], esi
mov ebp, dword [esp + 0x20]
sub eax, 1
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 0xa8], eax
call fcn.00410220
mov dword [esp + 0xb4], eax
jmp 0x4111df
fld dword [0x41c2c4]
cmp ebx, 1
fmul st(1), st(0)
sbb eax, eax
mov dword [esp + 0x5c], eax
mov esi, eax
and dword [esp + 0x5c], 0x10
and esi, 1
add dword [esp + 0x5c], 0x10
fld st(1)
fstp qword [esp + 0x40]
fld qword [0x41c2c8]
fucompi st(2)
jbe 0x4115e0
fnstcw word [esp + 0x8a]
fld st(1)
movzx eax, word [esp + 0x8a]
mov ah, 0xc
mov word [esp + 0x88], ax
mov eax, dword [esp + 0x68]
fldcw word [esp + 0x88]
fistp dword [esp + 0x50]
fldcw word [esp + 0x8a]
cmp eax, 1
fild dword [esp + 0x50]
fsub st(2), st(0)
fxch st(2)
fst qword [esp + 0x40]
je 0x411831
cmp eax, 2
jne 0x411702
fstp st(0)
fstp st(0)
test esi, esi
fstp qword [esp + 0x30]
jne 0x411550
fldz
fld qword [esp + 0x40]
fucompi st(1)
fstp st(0)
ja 0x41152f
jmp 0x411550
fstp st(0)
add dword [esp + 0x50], 1
mov eax, 0x30
sub eax, dword [esp + 0x5c]
fild dword [esp + 0x50]
mov dword [esp + 0x5c], eax
fstp qword [esp + 0x30]
lea esi, [esi]
mov dword [esp + 0x54], 0
jmp 0x410deb
fucompi st(1)
jbe 0x410f30
fsubr dword [0x41c2bc]
fld qword [esp + 0x40]
fxch st(1)
fucompi st(1)
fstp st(0)
jbe 0x410f32
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x20]
or dword [esp + 0xa4], eax
jmp 0x4111df
mov ebp, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0040f7e0
sub dword [esp + 0xac], ebx
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xb4], eax
jmp 0x410e11
neg eax
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0040fce0
jmp 0x410e54
fstp st(0)
fstp st(0)
fld qword [esp + 0x40]
fstp qword [esp + 0x30]
mov dword [esp + 0x50], 0
jmp 0x411550
fld1
xor esi, esi
fst qword [esp + 0x30]
mov dword [esp + 0x50], 0
fstp qword [esp + 0x40]
mov dword [esp + 0x5c], 0x20
mov dword [esp + 0x54], 0
jmp 0x410deb
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0040fce0
add dword [esp + 0xac], 1
add dword [esp + 0x6c], 1
mov dword [esp + 0x50], 0
jmp 0x410ec0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xa4], 0xa3
mov dword [eax + 0x10], 0
call sub.msvcrt.dll__errno
mov dword [eax], 0x22
mov eax, dword [esp + 0xe8]
mov eax, dword [eax + 8]
add eax, 1
jmp 0x410664
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xb4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 4], eax
lea eax, [esp + 0xb0]
mov dword [esp], eax
call fcn.004121d0
mov ecx, dword [esp + 0xb4]
cmp eax, 6
mov dword [esp + 0xa4], eax
jne 0x410333
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x3c], 0
mov dword [esp + 0xb0], eax
jmp 0x410333
fucompi st(1)
fstp st(0)
jae 0x41152d
fstp qword [esp + 0x30]
jmp 0x411550
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x2c]
sub ebx, eax
cmp ebx, 0
jne 0x4118d4
mov eax, dword [esp + 0xac]
mov dword [esp + 0x38], 0
jmp 0x4111f2
je 0x410803
neg eax
mov edx, eax
and edx, 0xf
je 0x411763
fld qword [esp + 0xb8]
fdiv qword [edx*8 + 0x41c040]
fstp qword [esp + 0xb8]
and eax, 0xfffffff0
je 0x410803
sar eax, 4
cmp eax, 0xf
mov edi, eax
jle 0x411d2f
fld qword [0x41c120]
mov edx, eax
xor esi, esi
mov eax, dword [esp + 0xbc]
sub edx, 0x10
mov ecx, eax
and eax, 0x800fffff
or eax, 0x3ff00000
and ecx, 0x7ff00000
mov dword [esp + 0xbc], eax
shr ecx, 0x14
cmp edx, 0xf
fld qword [esp + 0xb8]
lea esi, [esi + ecx - 0x3ff]
fmul st(1)
fstp qword [esp + 0xb8]
jg 0x411784
fstp st(0)
and edi, 0xf
mov edx, dword [esp + 0xbc]
mov eax, edx
and edx, 0x800fffff
and eax, 0x7ff00000
or edx, 0x3ff00000
shr eax, 0x14
lea esi, [esi + eax - 0x3ff]
xor eax, eax
mov dword [esp + 0xbc], edx
test edi, edi
fld qword [esp + 0xb8]
jle 0x41080c
test edi, 1
je 0x411816
fmul qword [eax*8 + 0x41c100]
sar edi, 1
add eax, 1
test edi, edi
jg 0x411807
jmp 0x410bd8
mov dword [esp + 0x4c], 0
jmp 0x410bec
fstp st(0)
fstp st(0)
test esi, esi
fstp qword [esp + 0x30]
je 0x411550
fldz
fld qword [esp + 0x40]
fucompi st(1)
fstp st(0)
ja 0x41152f
jmp 0x411550
mov dword [esp + 0x38], 0
jmp 0x410d35
lea eax, [esp + 0xa4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
jmp 0x4109bf
mov ecx, dword [esp + 0x28]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x40], 0
jmp 0x41047a
mov edi, dword [esp + 0x58]
mov edx, 0x25
sub edx, dword [esp + 0x20]
cmp edi, edx
mov eax, edi
jg 0x4107cd
mov eax, 0xf
fld qword [esp + 0xb8]
sub eax, dword [esp + 0x20]
fmul qword [eax*8 + 0x41c040]
sub edi, eax
fmul qword [edi*8 + 0x41c040]
jmp 0x410cb8
jle 0x411c50
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0040f7e0
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x38], 0
sub eax, ebx
mov dword [esp + 0xac], eax
jmp 0x4111f2
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x48], 1
jmp 0x41049f
xor edi, edi
cmp dword [esp + 0x20], 0x10
jg 0x411945
mov eax, dword [esp + 0x40]
lea eax, [eax + eax*4]
lea eax, [esi + eax*2]
mov dword [esp + 0x40], eax
lea eax, [ecx + 1]
mov dword [esp + 0xb0], eax
movsx edx, byte [ecx + 1]
jmp 0x410a98
lea ebx, [esp + 0xb0]
mov dword [esp + 4], 0x41c180
mov dword [esp], ebx
call fcn.00411f10
test eax, eax
je 0x4106c0
mov dword [esp + 4], str.inity
mov dword [esp], ebx
sub dword [esp + 0xb0], 1
call fcn.00411f10
test eax, eax
jne 0x41199b
add dword [esp + 0xb0], 1
mov eax, dword [esp + 0xe8]
mov dword [esp + 0xa4], 3
mov dword [esp + 0x38], 0
mov eax, dword [eax + 8]
add eax, 1
jmp 0x410664
cmp ebx, 1
mov ebp, dword [esp + 0x20]
sbb eax, eax
and eax, 0x10
add eax, 0x11
mov dword [esp + 0xa4], eax
jmp 0x4111df
cmp ebx, 1
sbb eax, eax
and eax, 0x10
add eax, 0x11
test ebx, ebx
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xa4], eax
jne 0x4111df
cmp dword [esp + 0x30], 1
jg 0x4111df
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4111df
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x6c], eax
je 0x4111df
mov dword [esp], edi
mov dword [esp + 4], 1
call fcn.0040f7e0
mov edi, eax
mov eax, dword [esp + 0x24]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0040f8f0
test eax, eax
jle 0x411715
mov dword [esp + 0xa4], 0x11
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x2c]
sub dword [esp + 0xac], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call fcn.00410220
mov dword [esp + 0xb4], eax
jmp 0x4111df
mov eax, dword [esp + 0xbc]
or eax, 0x100000
tzcnt ecx, eax
mov eax, 0x15
sub eax, ecx
jmp 0x410984
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x411662
jmp 0x41126e
test ebx, ebx
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x20]
je 0x411bec
mov eax, dword [esp + 0x38]
test eax, eax
je 0x411ca1
mov ecx, dword [esp + 0xa8]
mov esi, dword [esp + 0xb4]
mov edx, ecx
lea eax, [esi + 0x14]
sar edx, 5
lea edx, [eax + edx*4]
cmp eax, edx
jae 0x411b15
cmp dword [esi + 0x14], 0xffffffff
lea eax, [esi + 0x18]
je 0x411b11
jmp 0x411ca1
add eax, 4
cmp dword [eax - 4], 0xffffffff
jne 0x411ca1
cmp edx, eax
ja 0x411b04
and ecx, 0x1f
je 0x411b2a
or edx, 0xffffffff
shl edx, cl
or edx, dword [eax]
add edx, 1
jne 0x411ca1
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 1
mov dword [esp + 0xa8], 1
lea eax, [eax + ebx - 1]
mov dword [esp + 0xac], eax
mov eax, 1
mov dword [esp + 0xa4], 0x21
jmp 0x41171c
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x411662
jmp 0x41126e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x48]
sub eax, 1
lea edi, [eax + 1]
cmp eax, 8
mov dword [esp + 0x20], edi
jg 0x41192e
lea eax, [ebp + ebp*4]
xor edi, edi
lea ebp, [esi + eax*2]
jmp 0x411945
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4111a6
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0xb4]
mov dword [eax + 0x10], 0
mov eax, dword [esp + 0x48]
mov dword [esp + 0xa4], 0x50
mov dword [esp + 0xac], eax
jmp 0x4111df
mov edi, 1
jmp 0x410a76
cmp dword [esp + 0x30], 1
je 0x411cb8
mov dword [esp + 0xa4], 0x21
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x411c18
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x2c], eax
jg 0x411715
mov eax, dword [esp + 0xb4]
mov edx, dword [eax + 0x14]
test dl, 1
je 0x4111df
test ebx, ebx
jne 0x411d36
cmp dword [esp + 0x30], 1
je 0x411bc0
sub edx, 1
mov dword [eax + 0x14], edx
mov dword [esp + 0xa4], 0x11
jmp 0x4111df
mov eax, ebx
neg eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call fcn.0040fce0
jmp 0x4118f4
xor edi, edi
jmp 0x410b89
cmp ecx, 0xffffffff
jl 0x410911
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xa8], 1
mov dword [eax + 0x10], 1
mov dword [eax + 0x14], 1
jmp 0x4108e9
mov dword [esp + 0xa4], 0x11
jmp 0x411c02
xor edi, edi
jmp 0x410c36
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x6c], eax
jne 0x411d7c
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xa4], 0x21
cmp dword [eax + 0x10], 1
jne 0x4111df
cmp dword [eax + 0x14], 1
mov eax, dword [esp + 0x30]
cmovne eax, dword [esp + 0x78]
mov dword [esp + 0x78], eax
jmp 0x4111df
mov eax, dword [esp + 0xf0]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 4], eax
call fcn.00412b20
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xe8]
mov eax, dword [eax + 8]
add eax, 1
jmp 0x410664
xor esi, esi
jmp 0x4117cb
mov dword [esp], eax
call fcn.0040fe40
mov ecx, dword [esp + 0xa8]
mov edx, dword [eax + 0x10]
mov dword [esp + 0xb4], eax
bsr eax, dword [eax + edx*4 + 0x10]
mov edx, ecx
neg edx
and edx, 0x1f
xor eax, 0x1f
cmp edx, eax
je 0x411d6c
add ecx, 1
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xa4], 0x21
jmp 0x4111df
mov dword [esp + 0xa4], 1
jmp 0x411a5f