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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
call sub.msvcrt.dll_localeconv
mov edi, dword [eax]
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [esp + 0x9c], 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xac], 0
mov eax, dword [eax]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xa8], eax
movzx ecx, byte [eax]
mov ebp, eax
cmp cl, 0x2d
ja case.0x40d5fb.1
movzx edx, cl
jmp dword [edx*4 + 0x4188cc]
mov dword [esp + 0x64], 0
mov dword [esp + 0x20], 0
cmp cl, 0x30
je 0x40d930
mov eax, dword [esp + 0xd8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x84], eax
movsx eax, cl
lea edx, [eax - 0x30]
cmp edx, 9
ja 0x40ebf0
xor ecx, ecx
mov dword [esp + 0x30], edi
xor ebx, ebx
mov dword [esp + 0x2c], 0
mov edi, ecx
jmp 0x40d67c
lea edx, [edi + edi*4]
lea edi, [eax + edx*2 - 0x30]
add ebx, 1
lea edx, [ebp + ebx]
mov dword [esp + 0xa8], edx
movsx eax, byte [ebp + ebx]
lea esi, [eax - 0x30]
mov ecx, eax
cmp esi, 9
ja 0x40d6e0
cmp ebx, 8
jle 0x40d658
cmp ebx, 0xf
jg 0x40d65f
mov esi, dword [esp + 0x2c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*2 - 0x30]
mov dword [esp + 0x2c], eax
jmp 0x40d65f
mov esi, dword [esp + 0xd4]
test esi, esi
je 0x40d6bb
mov eax, dword [esp + 0xd4]
mov edi, dword [esp + 0xd0]
mov dword [eax], edi
add esp, 0xbc
mov eax, 6
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, 1
jmp 0x40d5e7
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x30]
cmp byte [edi], cl
je 0x40e138
mov dword [esp + 0x30], ebx
xor edi, edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x38], 0
mov edx, eax
and edx, 0xffffffdf
cmp edx, 0x45
je 0x40d810
mov dword [esp + 0x4c], 0
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x40d9f0
mov ebx, dword [esp + 0x20]
or ebx, edi
jne 0x40d9dd
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x40d780
cmp eax, 0x69
je 0x40e3e2
jg 0x40d96d
cmp eax, 0x49
je 0x40e3e2
cmp eax, 0x4e
jne 0x40d780
lea ebx, [esp + 0xa8]
mov dword [esp + 4], 0x4188c9
mov dword [esp], ebx
call fcn.004103f0
test eax, eax
jne 0x40e546
lea esi, [esi]
nop
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x9c], 6
mov dword [esp + 0xa8], eax
mov ebx, dword [esp + 0xd4]
test ebx, ebx
je 0x40d7bb
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0xd4]
mov dword [ebx], eax
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x40d7cb
or dword [esp + 0x9c], 8
test edx, edx
je 0x40d7f9
mov eax, dword [esp + 0x48]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call fcn.00410440
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.0040c4f0
mov eax, dword [esp + 0x9c]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
or eax, edi
or eax, dword [esp + 0x20]
je 0x40d780
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xd0], eax
add eax, 1
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xd0]
movsx eax, byte [eax + 1]
cmp al, 0x2b
je 0x40ec10
cmp al, 0x2d
je 0x40e238
mov dword [esp + 0x58], 0
lea esi, [eax - 0x30]
cmp esi, 9
ja 0x40e218
mov edx, dword [esp + 0xa8]
cmp eax, 0x30
jne 0x40d8ab
lea ecx, [edx + 1]
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 0xa8], ecx
movsx eax, byte [ecx]
mov edx, ecx
lea ecx, [ecx + 1]
cmp eax, 0x30
je 0x40d880
lea ecx, [eax - 0x31]
mov dword [esp + 0x4c], 0
cmp ecx, 8
ja 0x40d71c
lea esi, [eax - 0x30]
lea eax, [edx + 1]
mov dword [esp + 0xa8], eax
movsx eax, byte [edx + 1]
lea ecx, [eax - 0x30]
cmp ecx, 9
ja 0x40eda4
mov dword [esp + 0x4c], ebx
lea ecx, [edx + 2]
mov dword [esp + 0x5c], edx
lea edx, [esi + esi*4]
mov dword [esp + 0xa8], ecx
mov ebx, ecx
add ecx, 1
lea esi, [eax + edx*2 - 0x30]
movsx eax, byte [ecx - 1]
lea edx, [eax - 0x30]
cmp edx, 9
jbe 0x40d8d0
mov edx, dword [esp + 0x5c]
mov ecx, ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x4c], 0x4e1f
sub ecx, edx
cmp ecx, 8
jle 0x40eda4
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
mov edx, esi
neg edx
test ecx, ecx
cmove edx, esi
mov dword [esp + 0x4c], edx
jmp 0x40d71c
movzx edx, byte [ebp + 1]
lea eax, [ebp + 1]
and edx, 0xffffffdf
cmp dl, 0x58
je 0x40ec95
lea esi, [esi]
nop
mov dword [esp + 0xa8], eax
mov ebp, eax
movzx ecx, byte [eax]
lea eax, [eax + 1]
cmp cl, 0x30
je 0x40d948
test cl, cl
je 0x40d9dd
mov dword [esp + 0x20], 1
jmp 0x40d621
cmp eax, 0x6e
je 0x40d759
jmp 0x40d780
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0x5c]
mov ecx, eax
mov dword [eax + 0x10], 0
mov edx, dword [esp + 0x84]
mov dword [eax + 0x14], 0
mov dword [esp + 0x9c], 0x50
mov dword [ebx], edi
test edx, edx
jne 0x40ea50
mov eax, dword [eax + 0x10]
test eax, eax
setg al
movzx eax, al
add eax, eax
or eax, 0x50
lea esi, [esi]
or eax, 0x40
mov dword [esp + 0x9c], eax
call sub.msvcrt.dll__errno
mov dword [eax], 0x22
mov edx, dword [esp + 0xac]
jmp 0x40d7a0
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x9c], 1
mov edx, dword [esp + 0x64]
sub eax, edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xd8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
and eax, 3
mov edi, eax
sub edi, edx
mov dword [esp + 0x68], edi
cmp eax, 2
je 0x40da43
lea edi, [edx + 1]
mov dword [esp + 0x68], edi
cmp eax, 3
je 0x40da43
test eax, eax
sete al
movzx eax, al
mov dword [esp + 0x68], eax
mov esi, dword [esp + 0x30]
test ebx, ebx
mov eax, 0x10
mov dword [esp + 0x24], 0
cmove ebx, esi
cmp esi, eax
cmovle eax, esi
mov edi, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
fild qword [esp + 0x20]
fst qword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
cmp esi, 9
jle 0x40dab0
fld qword [edi*8 + 0x418738]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
fmulp st(1)
fild qword [esp + 0x20]
faddp st(1)
fstp qword [esp + 0x20]
jmp 0x40dab2
fstp st(0)
cmp dword [esp + 0x48], 0x35
jg 0x40e178
cmp dword [esp + 0x30], 0xf
jg 0x40e178
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x40ed40
jle 0x40e452
mov eax, dword [esp + 0x6c]
cmp eax, 0x16
jg 0x40ed84
mov edx, dword [esp + 0x20]
mov eax, dword [eax*4 + 0x4189a0]
test edx, edx
jne 0x40f0b7
mov ecx, dword [esp + 0x24]
mov edx, 0x15
or ecx, 0x100000
tzcnt ecx, ecx
sub edx, ecx
mov dword [esp + 0x2c], edx
mov esi, dword [esp + 0x6c]
fld qword [esp + 0x20]
fmul qword [esi*8 + 0x418780]
mov esi, dword [esp + 0x68]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x2c]
add eax, esi
fstp qword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
cmp eax, 0x35
setle al
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x9c]
movzx eax, al
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xd8]
call fcn.0040d0f0
test eax, eax
jne 0x40d9dd
mov esi, dword [esp + 0x30]
sub esi, edi
mov eax, esi
test esi, esi
jle 0x40e1a0
fld qword [esp + 0x20]
fmul qword [eax*8 + 0x418780]
fstp qword [esp + 0x20]
and esi, 0xfffffff0
jne 0x40e268
fld qword [esp + 0x20]
lea eax, [esp + 0xa0]
fstp qword [esp]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xa4]
mov dword [esp + 8], eax
call fcn.0040cf30
mov ecx, dword [esp + 0x48]
add esi, dword [esp + 0xa4]
mov dword [esp + 0xac], eax
mov edx, eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xa4], esi
mov edi, eax
sub edi, ecx
test edi, edi
jle 0x40dc17
mov dword [esp + 4], edi
mov dword [esp], edx
call fcn.0040c190
mov eax, dword [esp + 0x48]
add edi, dword [esp + 0xa4]
mov dword [esp + 0xa4], edi
mov esi, edi
mov dword [esp + 0xa0], eax
lea edx, [esi + eax]
mov edi, edx
mov edx, dword [esp + 0x48]
sub edi, edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x88], edi
mov edx, dword [edx + 8]
mov dword [esp + 0x20], edx
add edx, 1
cmp edx, edi
jl 0x40eba0
mov ecx, dword [esp + 0xd8]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x5c], ecx
cmp edi, ecx
jge 0x40ed12
mov edi, esi
sub edi, ecx
test edi, edi
jg 0x40e3bc
je 0x40dca0
add edi, eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xa0], edi
test edi, edi
jg 0x40efba
cmp edi, 0xffffffff
jl 0x40d97b
mov dword [esp + 0xa0], 1
mov dword [eax + 0x10], 1
mov dword [eax + 0x14], 1
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x84]
mov dword [esp + 0xa4], edi
test eax, eax
je 0x40ed1f
mov eax, dword [esp + 0x88]
mov dword [esp + 0x38], 1
mov dword [esp + 0x88], edi
add eax, 1
cmp eax, edi
jl 0x40ea31
mov eax, dword [esp + 0x34]
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.00410240
mov ebx, dword [esp + 0x4c]
xor edx, edx
mov dword [esp + 0x34], 0
mov edi, eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x50]
sub eax, ebx
mov ebx, dword [esp + 0x6c]
test ebx, ebx
cmovs edx, eax
mov eax, 0
cmovns eax, ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x70], eax
lea eax, [edi + 0xc]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x48]
add eax, 1
mov dword [esp + 0x78], eax
lea esi, [esi]
mov edi, dword [esp + 0x74]
mov eax, dword [edi + 4]
mov dword [esp], eax
call fcn.0040c410
mov edx, dword [edi + 0x10]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x30], eax
add eax, 0xc
lea edx, [edx*4 + 8]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0xac]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.0040c410
mov esi, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xac]
lea edx, [esi + 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 esi, dword [esp + 0xa0]
mov ebx, dword [esp + 0x34]
mov dword [esp], 1
mov edi, dword [esp + 0xa4]
mov eax, esi
sub eax, ebx
add ebx, edi
mov dword [esp + 0x40], eax
call fcn.0040c640
mov dword [esp + 0x2c], eax
test ebx, ebx
js 0x40e6c0
mov eax, dword [esp + 0x4c]
add ebx, eax
mov eax, dword [esp + 0x70]
add esi, edi
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
sub esi, edi
mov edi, dword [esp + 0x5c]
sub edx, ecx
mov ecx, esi
sub ecx, edi
add ecx, edx
cmp edi, esi
cmovg edx, ecx
lea esi, [ebx + edx]
lea ebp, [eax + edx]
cmp esi, ebp
mov eax, ebp
cmovle eax, esi
cmp eax, ebx
cmovg eax, ebx
test eax, eax
jle 0x40de36
sub esi, eax
sub ebp, eax
sub ebx, eax
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x40de74
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0040c890
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], eax
call fcn.0040c6f0
mov ecx, dword [esp + 0x20]
mov edi, eax
mov dword [esp], ecx
call fcn.0040c4f0
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x34]
mov eax, esi
sub eax, edi
test eax, eax
jg 0x40e680
jne 0x40e9b0
mov esi, dword [esp + 0x6c]
test esi, esi
jg 0x40e6a0
test ebp, ebp
jle 0x40deae
mov eax, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.0040ca10
mov dword [esp + 0x30], eax
test ebx, ebx
jle 0x40dec6
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0040ca10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040cba0
cmp dword [eax + 0x10], 1
mov edi, eax
jg 0x40deed
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x40ed37
mov eax, dword [esp + 0x2c]
mov ebx, dword [edi + 0xc]
mov dword [edi + 0xc], 0
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0040cb50
mov esi, dword [esp + 0x68]
test esi, esi
je 0x40e5b0
test eax, eax
jg 0x40e5b0
mov eax, esi
and eax, 1
mov ecx, eax
xor ecx, ebx
mov dword [esp + 0x34], ecx
cmp eax, ebx
je 0x40edb7
test ebx, ebx
jne 0x40e9d0
mov dword [esp + 0x9c], 0x11
mov edx, dword [esp + 0x5c]
cmp dword [esp + 0x88], edx
je 0x40df7f
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0xac]
cmp eax, 0x1f
jg 0x40df77
jmp 0x40eb3e
sub eax, 0x20
add ebx, 1
cmp eax, 0x1f
jle 0x40eb48
mov ecx, dword [edx + ebx*4 + 0x14]
test ecx, ecx
je 0x40df68
cmp dword [esp + 0x40], 1
jg 0x40df91
test byte [esp + 0x38], 1
jne 0x40efd1
fld1
mov dword [esp + 0x58], 0
mov ebp, 1
fst qword [esp + 0x40]
mov dword [esp + 0x80], 0x10
fstp qword [esp + 0x50]
mov eax, dword [esp + 0xa0]
mov esi, dword [esp + 0xa4]
add esi, eax
mov dword [esp + 0x60], esi
test byte [esp + 0x38], 1
jne 0x40dfda
mov ebx, dword [esp + 0x48]
cmp eax, ebx
jl 0x40ea00
lea eax, [esp + 0x98]
fld qword [esp + 0x40]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x94]
mov dword [esp + 8], eax
fstp qword [esp]
call fcn.0040cf30
mov ebx, eax
mov eax, dword [esp + 0x94]
test eax, eax
js 0x40e730
jne 0x40e7f0
mov esi, dword [esp + 0xac]
mov dword [esp + 4], ebx
mov dword [esp], esi
test ebp, ebp
je 0x40e618
call fcn.0040cba0
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0x10]
mov dword [esp + 0xac], eax
test ecx, ecx
jne 0x40e080
lea ecx, [edx - 1]
cmp dword [eax + 0x10], ecx
jle 0x40e05f
add edx, 3
bsr ecx, dword [eax + edx*4 + 4]
xor ecx, 0x1f
bsr edx, dword [esi + edx*4 + 4]
xor edx, 0x1f
cmp edx, ecx
jge 0x40e080
mov edx, dword [esp + 0x5c]
cmp dword [esp + 0x88], edx
jne 0x40e6d0
sub dword [esp + 0xa0], 1
mov dword [esp + 0x38], ebp
lea esi, [esi]
mov dword [esp], ebx
call fcn.0040c4f0
mov dword [esp], esi
call fcn.0040c4f0
mov edx, dword [esp + 0x34]
test edx, edx
jne 0x40ed37
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0xa0]
add eax, dword [esp + 0xa4]
cmp eax, esi
jne 0x40e0f8
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40e0f8
fld qword [esp + 0x40]
fmul qword [0x418a10]
fld qword [esp + 0x50]
fld st(0)
fsub dword [0x418a04]
fld st(2)
fchs
fcompi st(1)
jbe 0x40e808
fstp st(0)
fcompi st(1)
fstp st(0)
ja 0x40e828
jmp 0x40e0f8
fstp st(0)
lea esi, [esi]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40e707
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040c4f0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.0040c4f0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0040c4f0
mov dword [esp], edi
call fcn.0040c4f0
jmp 0x40dd48
movzx esi, byte [edi + 1]
mov ecx, esi
test cl, cl
je 0x40efb0
mov dword [esp + 0x30], eax
mov ecx, 1
mov eax, esi
jmp 0x40e163
add ecx, 1
movzx eax, byte [edi + ecx]
test al, al
je 0x40e1b0
cmp byte [edx + ecx], al
je 0x40e158
mov eax, dword [esp + 0x30]
jmp 0x40d6f0
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x6c]
sub esi, edi
add esi, eax
test esi, esi
jle 0x40e1a0
mov eax, esi
and eax, 0xf
je 0x40db9b
jmp 0x40db8c
test esi, esi
je 0x40dba4
jmp 0x40e467
mov eax, ecx
add edx, eax
mov dword [esp + 0xa8], edx
movsx eax, byte [edx]
test ebx, ebx
je 0x40e323
lea ecx, [eax - 0x30]
mov dword [esp + 0x30], ebx
xor edi, edi
mov dword [esp + 0x50], 0
cmp ecx, 9
ja 0x40e208
mov dword [esp + 0x38], ecx
mov esi, dword [esp + 0xa8]
add edi, 1
test ecx, ecx
jne 0x40ef28
lea eax, [esi + 1]
mov dword [esp + 0xa8], eax
movsx eax, byte [esi + 1]
lea ecx, [eax - 0x30]
cmp ecx, 9
jbe 0x40e1dc
mov dword [esp + 0x38], 1
jmp 0x40d706
mov esi, dword [esp + 0xd0]
mov dword [esp + 0x4c], 0
mov dword [esp + 0xa8], esi
jmp 0x40d71c
mov dword [esp + 0x58], 1
mov eax, dword [esp + 0xd0]
add eax, 2
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xd0]
movsx eax, byte [eax + 2]
jmp 0x40d85b
mov edx, esi
sar edx, 4
cmp esi, 0xff
jle 0x40f11a
fld qword [0x4188a0]
mov ecx, edx
xor edi, edi
lea esi, [esi]
nop
mov eax, dword [esp + 0x24]
sub ecx, 0x10
mov esi, eax
and eax, 0x800fffff
or eax, 0x3ff00000
shr esi, 0x14
mov dword [esp + 0x24], eax
fld qword [esp + 0x20]
and esi, 0x7ff
lea esi, [edi + esi - 0x3ff]
mov edi, esi
fmul st(1)
fstp qword [esp + 0x20]
cmp ecx, 0xf
jg 0x40e288
fstp st(0)
and edx, 0xf
mov eax, dword [esp + 0x24]
mov ecx, eax
and eax, 0x800fffff
shr ecx, 0x14
or eax, 0x3ff00000
and ecx, 0x7ff
mov dword [esp + 0x24], eax
fld qword [esp + 0x20]
lea esi, [esi + ecx - 0x3ff]
test edx, edx
je 0x40dba8
fld st(0)
xor ecx, ecx
xor eax, eax
lea esi, [esi]
nop
test dl, 1
je 0x40e311
fmul qword [eax*8 + 0x418880]
mov ecx, 1
add eax, 1
sar edx, 1
jne 0x40e300
test cl, cl
fcmove st(0), st(1)
fstp st(1)
jmp 0x40dba8
cmp eax, 0x30
jne 0x40f121
mov ecx, edx
nop
mov esi, ecx
add ecx, 1
mov dword [esp + 0xa8], ecx
movsx eax, byte [ecx]
cmp eax, 0x30
je 0x40e330
sub esi, edx
lea edi, [esi + 1]
lea edx, [eax - 0x31]
cmp edx, 8
ja 0x40ed6f
sub eax, 0x30
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], eax
lea eax, [edi + 1]
mov dword [esp + 0x50], eax
mov esi, ebp
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
lea eax, [eax + eax*4]
lea eax, [edi + eax*2]
xor edi, edi
mov dword [esp + 0x40], eax
jmp 0x40e1f2
mov dword [esp + 0x64], 0
lea edx, [eax + 1]
mov dword [esp + 0xa8], edx
movzx ecx, byte [eax + 1]
test cl, cl
je case.0x40d5fb.0
mov ebp, edx
jmp 0x40d610
mov dword [esp + 0x64], 1
jmp 0x40e395
mov eax, dword [esp + 0xac]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040ca10
add dword [esp + 0xa0], edi
mov dword [esp + 0xac], eax
jmp 0x40dca0
lea ebx, [esp + 0xa8]
mov dword [esp + 4], 0x4188c0
mov dword [esp], ebx
call fcn.004103f0
test eax, eax
je 0x40d780
mov dword [esp + 4], str.inity
mov dword [esp], ebx
sub dword [esp + 0xa8], 1
call fcn.004103f0
test eax, eax
jne 0x40e425
add dword [esp + 0xa8], 1
mov dword [esp + 0x9c], 3
mov eax, dword [esp + 0xd8]
mov ebx, dword [esp + 0xdc]
mov edx, dword [esp + 0xac]
mov eax, dword [eax + 8]
add eax, 1
mov dword [ebx], eax
jmp 0x40d7a0
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x6c]
sub esi, edi
add esi, eax
cmp eax, 0xffffffea
jge 0x40f006
neg esi
mov eax, esi
and eax, 0xf
je 0x40e47f
fld qword [esp + 0x20]
fdiv qword [eax*8 + 0x418780]
fstp qword [esp + 0x20]
and esi, 0xfffffff0
je 0x40dba4
mov edi, esi
sar edi, 4
cmp esi, 0xff
jle 0x40f132
fld qword [0x418860]
mov edx, edi
xor esi, esi
lea esi, [esi]
nop
mov eax, dword [esp + 0x24]
sub edx, 0x10
mov ecx, eax
and eax, 0x800fffff
or eax, 0x3ff00000
shr ecx, 0x14
mov dword [esp + 0x24], eax
fld qword [esp + 0x20]
and ecx, 0x7ff
lea ecx, [esi + ecx - 0x3ff]
mov esi, ecx
fmul st(1)
fstp qword [esp + 0x20]
cmp edx, 0xf
jg 0x40e4a8
fstp st(0)
and edi, 0xf
mov eax, dword [esp + 0x24]
mov edx, eax
and eax, 0x800fffff
shr edx, 0x14
or eax, 0x3ff00000
and edx, 0x7ff
mov dword [esp + 0x24], eax
lea esi, [ecx + edx - 0x3ff]
test edi, edi
je 0x40dba4
fld qword [esp + 0x20]
xor edx, edx
xor eax, eax
fld st(0)
lea esi, [esi]
nop
test edi, 1
je 0x40e534
fmul qword [eax*8 + 0x418840]
mov edx, 1
add eax, 1
sar edi, 1
jne 0x40e520
test dl, dl
fcmove st(0), st(1)
fstp st(1)
jmp 0x40dba8
mov eax, dword [esp + 0xd8]
mov edi, dword [esp + 0xdc]
mov dword [esp + 0x9c], 4
mov edx, dword [esp + 0xac]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
add eax, 1
mov dword [edi], eax
mov eax, dword [esp + 0xa8]
cmp byte [eax], 0x28
jne 0x40d7a0
mov eax, dword [esp + 0xe0]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 4], eax
call fcn.0040fe10
mov dword [esp + 0x9c], eax
jmp 0x40e430
test eax, eax
js 0x40edf4
je 0x40ee84
mov eax, dword [esp + 0x2c]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00410330
fld dword [0x418a00]
fcompi st(1)
jb 0x40e748
fstp st(0)
test ebx, ebx
je 0x40ec20
fld1
mov dword [esp + 0x58], 0
xor ebp, ebp
fst qword [esp + 0x40]
mov dword [esp + 0x80], 0x20
fstp qword [esp + 0x50]
mov dword [esp + 0x34], 0
jmp 0x40dfb3
call fcn.0040f200
mov edx, dword [eax + 0x10]
mov dword [esp + 0xac], eax
lea ecx, [edx - 1]
cmp dword [esi + 0x10], ecx
jle 0x40e64a
add edx, 3
bsr ecx, dword [eax + edx*4 + 4]
xor ecx, 0x1f
bsr edx, dword [esi + edx*4 + 4]
xor edx, 0x1f
cmp edx, ecx
jle 0x40e080
mov ebp, dword [esp + 0x38]
test ebp, ebp
je 0x40eaa0
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x48]
add eax, 1
cmp eax, ecx
mov dword [esp + 0xa0], eax
setne al
movzx eax, al
mov dword [esp + 0x38], eax
jmp 0x40e080
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040ca10
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
test esi, esi
jle 0x40de96
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.0040c890
mov dword [esp + 0x30], eax
jmp 0x40de96
mov eax, dword [esp + 0x70]
sub eax, ebx
mov ebx, dword [esp + 0x4c]
jmp 0x40ddf9
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0040ca10
mov dword [esp], ebx
sub dword [esp + 0xa4], 1
sub dword [esp + 0x88], 1
mov dword [esp + 0xac], eax
call fcn.0040c4f0
mov dword [esp], esi
call fcn.0040c4f0
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.0040c2c0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], eax
jmp 0x40e104
neg eax
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040c190
jmp 0x40e013
fld dword [0x418a04]
cmp ebx, 1
sbb eax, eax
and eax, 0x10
add eax, 0x10
fmul st(1), st(0)
fxch st(1)
mov dword [esp + 0x80], eax
xor eax, eax
cmp ebx, 1
setb al
mov ebp, eax
fst qword [esp + 0x50]
fld qword [0x418a08]
fcompi st(1)
jbe 0x40ea80
fnstcw word [esp + 0x8e]
movzx eax, word [esp + 0x8e]
or ah, 0xc
mov word [esp + 0x8c], ax
mov eax, dword [esp + 0x68]
fldcw word [esp + 0x8c]
fist dword [esp + 0x58]
fldcw word [esp + 0x8e]
fild dword [esp + 0x58]
fst qword [esp + 0x40]
fsubp st(1)
fst qword [esp + 0x50]
cmp eax, 1
je 0x40ec30
cmp eax, 2
je 0x40ec78
fcompi st(1)
fstp st(0)
jae 0x40ec4c
lea esi, [esi]
mov dword [esp + 0x34], 0
jmp 0x40dfb3
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040ca10
mov ebx, eax
jmp 0x40e013
fstp st(1)
fcompi st(1)
jbe 0x40e0f0
fsubr dword [0x4189fc]
fld qword [esp + 0x50]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x40e0f8
mov eax, dword [esp + 0x80]
or dword [esp + 0x9c], eax
mov ebp, dword [esp + 0x20]
lea esi, [esi]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40eae0
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0xdc]
mov dword [ebx], eax
mov dword [esp], ebp
call fcn.0040c4f0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.0040c4f0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0040c4f0
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.0040c4f0
mov dword [esp], edi
call fcn.0040c4f0
mov eax, dword [esp + 0xd8]
mov ebx, dword [esp + 0xa4]
cmp dword [eax + 8], ebx
jge 0x40e958
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
and eax, 3
cmp eax, 2
je 0x40ede3
cmp eax, 3
je 0x40edd2
cmp eax, 1
je 0x40eba8
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.0040c4f0
mov eax, dword [esp + 0xd8]
mov ebx, dword [esp + 0xdc]
mov dword [esp + 0xac], 0
mov dword [esp + 0x9c], 0x11
mov eax, dword [eax + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0xd8]
mov ebx, dword [esp + 0xe0]
mov esi, dword [eax]
lea eax, [esi + 0x1f]
sar eax, 5
shl eax, 2
add ebx, eax
cmp dword [esp + 0xe0], ebx
jae 0x40e943
mov dword [esp + 8], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 4], 0xff
mov dword [esp], eax
call fcn.00410cb8
and esi, 0x1f
je 0x40e958
mov ecx, 0x20
sub ecx, esi
shr dword [ebx - 4], cl
lea esi, [esi]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0xac]
test ebp, ebp
je 0x40d7a0
mov edi, dword [esp + 0x84]
mov ecx, edx
test edi, edi
jne 0x40ea50
mov esi, dword [edx + 0x10]
xor eax, eax
mov ecx, dword [esp + 0x9c]
test esi, esi
setg al
and ecx, 0xfffffff8
add eax, eax
or eax, ecx
and ecx, 0x30
jne 0x40d9c8
mov dword [esp + 0x9c], eax
jmp 0x40d7a0
mov eax, dword [esp + 0x34]
sub eax, esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040c190
jmp 0x40de8a
fld1
xor ebp, ebp
mov dword [esp + 0x9c], 0x21
fst qword [esp + 0x40]
mov dword [esp + 0x58], 0
fstp qword [esp + 0x50]
mov dword [esp + 0x80], 0x20
jmp 0x40dfb3
mov esi, ebx
sub ebx, eax
mov eax, dword [esp + 0xac]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0040ca10
sub dword [esp + 0xa4], ebx
mov dword [esp + 0xac], eax
mov dword [esp + 0xa0], esi
jmp 0x40dfda
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xdc]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [eax], edi
nop
mov dword [ecx + 0x10], 0
mov dword [esp + 0x9c], 0x50
call sub.msvcrt.dll__errno
mov edx, dword [esp + 0xac]
mov dword [eax], 0x22
jmp 0x40d7a0
fstp st(0)
fstp st(0)
fld qword [esp + 0x50]
mov dword [esp + 0x58], 0
fstp qword [esp + 0x40]
jmp 0x40e7e0
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.0040c190
mov dword [esp], ebx
add dword [esp + 0xa4], 1
add dword [esp + 0x88], 1
call fcn.0040c4f0
mov dword [esp], esi
call fcn.0040c4f0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x40e707
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x48]
sub ebx, eax
mov dword [esp + 0x38], ebx
test ebx, ebx
je 0x40e84c
mov edx, dword [esp + 0xac]
jle 0x40ef11
mov eax, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0040ca10
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x38], 0
sub eax, ebx
mov dword [esp + 0xa4], eax
jmp 0x40e853
mov eax, dword [esp + 0x48]
lea esi, [esi]
cmp eax, 1
jle 0x40eb68
lea esi, [edx + ebx*4 + 0x14]
xor ecx, ecx
sub eax, 1
mov ebx, dword [esi]
tzcnt ecx, ebx
shr ebx, cl
mov dword [esi], ebx
cmp eax, ecx
jg 0x40df7f
mov eax, dword [esp + 0x88]
mov ebp, dword [esp + 0x20]
sub eax, 1
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 0xa0], eax
call fcn.0040d4b0
mov dword [esp + 0xac], eax
jmp 0x40e840
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0xac]
mov dword [esp + 0x9c], 0xa3
mov dword [eax + 0x10], 0
call sub.msvcrt.dll__errno
mov ebx, dword [esp + 0xdc]
mov dword [eax], 0x22
mov eax, dword [esp + 0xd8]
mov eax, dword [eax + 8]
add eax, 1
mov dword [ebx], eax
jmp 0x40e958
mov dword [esp + 0x2c], 0
mov edx, ebp
xor ebx, ebx
mov dword [esp + 0x40], 0
jmp 0x40d6e8
mov dword [esp + 0x58], 0
jmp 0x40e240
mov dword [esp + 0x34], 0
jmp 0x40df7f
fstp st(0)
fstp st(0)
test ebp, ebp
je 0x40e7e0
fldz
fld qword [esp + 0x50]
fcompi st(1)
fstp st(0)
jbe 0x40e7e0
mov ebx, dword [esp + 0x80]
add dword [esp + 0x58], 1
mov eax, 0x30
fild dword [esp + 0x58]
sub eax, ebx
mov dword [esp + 0x80], eax
fstp qword [esp + 0x40]
jmp 0x40e7e0
fstp st(0)
fstp st(0)
test ebp, ebp
jne 0x40e7e0
fldz
fld qword [esp + 0x50]
fcompi st(1)
fstp st(0)
ja 0x40ec4c
jmp 0x40e7e0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xac]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 4], eax
lea eax, [esp + 0xa8]
mov dword [esp], eax
call fcn.0040f3f0
mov dword [esp + 0x9c], eax
cmp eax, 6
jne 0x40d9dd
mov eax, dword [esp + 0xd0]
mov ebx, dword [esp + 0xd4]
mov dword [esp + 0xa8], eax
test ebx, ebx
je 0x40ed06
mov eax, dword [esp + 0xd4]
mov ebx, dword [esp + 0xd0]
mov dword [eax], ebx
mov edx, dword [esp + 0xac]
jmp 0x40d7cb
mov dword [esp + 0x38], 0
jmp 0x40dcdb
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], 1
mov dword [esp + 0x88], eax
jmp 0x40dcdb
mov ebp, dword [esp + 0x20]
jmp 0x40e840
lea eax, [esp + 0x9c]
mov edx, dword [esp + 0x24]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
jmp 0x40db5a
mov dword [esp + 0x50], 0
mov dword [esp + 0x30], 0
jmp 0x40e208
mov esi, dword [esp + 0x30]
mov eax, 0x25
mov ecx, dword [esp + 0x6c]
sub eax, esi
cmp eax, ecx
jge 0x40f0cd
sub esi, edi
add esi, ecx
jmp 0x40e188
mov edx, 0x4e1f
cmp esi, edx
cmovle edx, esi
mov dword [esp + 0x4c], edx
jmp 0x40d90c
cmp eax, 1
mov ebp, dword [esp + 0x20]
sbb eax, eax
and eax, 0x10
add eax, 0x11
mov dword [esp + 0x9c], eax
jmp 0x40e840
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x40eba8
jmp 0x40e8cc
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40eba8
jmp 0x40e8cc
mov ebp, dword [esp + 0x20]
test ebx, ebx
jne 0x40f0a7
mov dword [esp + 0x9c], 0x21
cmp dword [esp + 0x40], 1
jg 0x40e840
mov ebx, dword [esp + 0x5c]
cmp dword [esp + 0x88], ebx
je 0x40e840
test byte [esp + 0x38], 1
jne 0x40e840
mov dword [esp], edi
mov dword [esp + 4], 1
call fcn.0040ca10
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0040cb50
test eax, eax
jle 0x40eae0
xor eax, eax
mov edx, dword [esp + 0xac]
mov dword [esp + 0x9c], 0x11
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
sub dword [esp + 0xa4], eax
jmp 0x40eb81
mov ebp, dword [esp + 0x20]
test ebx, ebx
je 0x40f04d
mov esi, dword [esp + 0x38]
test esi, esi
je 0x40f128
mov ecx, dword [esp + 0xa0]
mov esi, dword [esp + 0xac]
mov edx, ecx
lea eax, [esi + 0x14]
sar edx, 5
lea edx, [eax + edx*4]
jmp 0x40eec4
add eax, 4
cmp dword [eax - 4], 0xffffffff
jne 0x40f19d
cmp eax, edx
jb 0x40eeb7
and ecx, 0x1f
jne 0x40f18d
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x5c]
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 1
mov dword [esp + 0xa0], 1
lea eax, [eax + ebx - 1]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x9c], 0x21
jmp 0x40eae7
mov ebx, dword [esp + 0x48]
mov dword [esp], edx
sub eax, ebx
mov dword [esp + 4], eax
call fcn.0040c190
jmp 0x40eb1d
mov eax, dword [esp + 0x30]
cmp edi, 1
je 0x40f1f8
add eax, edi
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x58], edi
lea edx, [eax - 1]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x5c], ebp
jmp 0x40ef61
lea edi, [edi + edi*4]
add edi, edi
cmp edx, ebx
je 0x40ef79
mov ebp, ebx
add ebx, 1
cmp ebp, 8
jbe 0x40ef58
cmp ebx, 0x10
jg 0x40ef5d
lea ebp, [eax + eax*4]
lea eax, [ebp + ebp]
jmp 0x40ef5d
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x60]
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x4c]
add dword [esp + 0x50], edi
cmp dword [esp + 0x30], 8
jg 0x40f0f8
mov dword [esp + 0x30], eax
jmp 0x40e374
mov eax, 1
jmp 0x40e1b2
mov edx, dword [esp + 0x5c]
mov dword [esp], eax
sub edx, esi
mov dword [esp + 4], edx
call fcn.0040c190
jmp 0x40dca0
mov dword [esp + 0x38], 1
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0x5c]
mov dword [edx + 0x10], 0
mov dword [esp + 0x9c], 0x50
mov dword [esp + 0xa4], eax
jmp 0x40e840
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
fld qword [esp + 0x20]
sub eax, esi
fdiv qword [eax*8 + 0x418780]
fstp qword [esp]
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov dword [esp + 8], 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x24], edx
mov dword [esp + 0xc], eax
jmp 0x40db5a
cmp dword [esp + 0x40], 1
mov eax, 0x21
je 0x40f139
mov dword [esp + 0x9c], eax
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x48], esi
jle 0x40f079
test byte [esp + 0x38], 1
je 0x40eae0
mov edx, dword [esp + 0xac]
mov esi, edx
test byte [edx + 0x14], 1
je 0x40e840
test ebx, ebx
jne 0x40f1b2
cmp dword [esp + 0x40], 1
je 0x40efe4
mov dword [esp], edx
call fcn.0040d470
mov dword [esp + 0x9c], 0x11
jmp 0x40e840
xor ecx, ecx
tzcnt ecx, edx
mov edx, 0x35
sub edx, ecx
mov dword [esp + 0x2c], edx
jmp 0x40db13
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
mov eax, 0xf
fld qword [esp + 0x20]
sub eax, esi
sub edx, eax
fmul qword [eax*8 + 0x418780]
fmul qword [edx*8 + 0x418780]
fstp qword [esp]
jmp 0x40f01e
mov dword [esp + 0x30], eax
xor edi, edi
cmp eax, 0x10
jg 0x40e1f2
mov eax, dword [esp + 0x2c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
mov dword [esp + 0x2c], eax
jmp 0x40e1f2
xor esi, esi
jmp 0x40e2c5
xor edi, edi
jmp 0x40e349
mov eax, 0x11
jmp 0x40f05d
xor ecx, ecx
jmp 0x40e4e5
mov dword [esp + 0x9c], 1
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0x5c]
cmp dword [esp + 0x88], ebx
jne 0x40ee74
mov dword [esp + 0x9c], 0x21
cmp dword [edx + 0x10], 1
jne 0x40e840
mov eax, dword [esp + 0x40]
cmp dword [edx + 0x14], 1
cmovne eax, dword [esp + 0x84]
mov dword [esp + 0x84], eax
jmp 0x40e840
or edx, 0xffffffff
shl edx, cl
or edx, dword [eax]
add edx, 1
je 0x40eed1
mov dword [esp + 0x9c], 0x11
test byte [esi + 0x14], 1
je 0x40e84c
mov dword [esp], esi
call fcn.0040d050
mov edx, dword [esp + 0xa0]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0xac], eax
bsr eax, dword [eax + ecx*4 + 0x10]
mov ecx, edx
neg ecx
and ecx, 0x1f
xor eax, 0x1f
cmp ecx, eax
je 0x40f1e8
add edx, 1
mov dword [esp + 0xa0], edx
mov dword [esp + 0x9c], 0x21
jmp 0x40e840
add eax, 1
jmp 0x40ef95