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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x89c
mov dword [esp + 4], 0x14
mov dword [esp], 3
mov dword [esp + 0x38], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], ecx
call fcn.0040b4b0
mov edx, dword [eax]
sub esp, 8
mov dword [esp + 0x48], eax
test edx, edx
jne 0x40757d
mov edi, eax
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], eax
and eax, 0x7fffffff
mov dword [edi], eax
mov eax, dword [esp + 0x5c]
call fcn.004070a0
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 4]
test edx, edx
je 0x40868b
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
test ecx, ecx
jle 0x408691
mov esi, dword [esp + 0x48]
mov dword [esp + 0x54], 0
xor ebp, ebp
mov dword [esp + 0x44], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x58], 0x20
mov dword [esp + 0x28], 0xffffffff
lea esi, [esi]
movsx edi, byte [edx]
mov eax, edi
mov dword [esp + 0x18], edi
sub eax, 0x23
cmp al, 0x3b
ja case.0x407607.2
movzx eax, al
jmp dword [eax*4 + 0x418150]
mov eax, dword [esp + 0x40]
cmp eax, 4
jg case.0x407607.2
add eax, 1
xor edi, edi
mov dword [esp + 0x40], eax
xor eax, eax
lea esi, [esi]
lea edi, [edi]
sub ecx, 1
add edx, 1
test ecx, ecx
mov dword [esi + 4], edx
mov dword [esi], ecx
je 0x40764d
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
mov ebx, edi
or ebx, eax
je 0x4075f0
mov esi, eax
jmp 0x4077f9
cmp dword [esp + 0x3c], 0xffffffff
jne case.0x407607.2
mov edi, dword [esp + 0x40]
test edi, edi
jne case.0x407607.2
xor eax, eax
xor edi, edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
jmp 0x407630
test ebp, ebp
sete al
cmp dword [esp + 0x3c], 0xffffffff
mov edi, eax
mov ebx, edi
sete al
test bl, al
je case.0x407607.2
mov edi, dword [esp + 0x44]
test edi, edi
jne case.0x407607.2
mov eax, 1
mov dword [esp + 0x44], 0
xor edi, edi
mov dword [esp + 0x3c], 0xffffffff
xor ebp, ebp
jmp 0x407630
cmp dword [esp + 0x28], 0x2a
je 0x40825d
test ebp, ebp
jne case.0x407607.2
cmp dword [esp + 0x3c], 0xffffffff
jne case.0x407607.2
mov ebx, dword [esp + 0x4c]
xor eax, eax
xor edi, edi
test ebx, ebx
jne 0x4079c8
mov dword [esp + 0x4c], 1
mov dword [esp + 0x3c], 0xffffffff
xor ebp, ebp
jmp 0x407630
mov eax, dword [esp + 0x40]
test eax, eax
jne case.0x407607.2
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x4082b2
add eax, 1
xor edi, edi
mov dword [esp + 0x3c], eax
xor eax, eax
jmp 0x407630
mov eax, dword [esp + 0x44]
test eax, eax
jne case.0x407607.2
test ebp, ebp
jne 0x4077e0
cmp dword [esp + 0x3c], 0xffffffff
jne 0x4077e0
xor eax, eax
xor edi, edi
cmp dword [esp + 0x18], 0x2b
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x44], 1
cmove ebx, dword [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x54], ebx
jmp 0x407630
test ebp, ebp
jne 0x40798a
cmp dword [esp + 0x3c], 0xffffffff
jne 0x40798a
xor eax, eax
xor edi, edi
mov dword [esp + 0x3c], 0xffffffff
mov ebp, 1
mov dword [esp + 0x58], 0x2a
jmp 0x407630
cmp dword [esp + 0x3c], 0xffffffff
jne case.0x407607.2
mov eax, dword [esp + 0x40]
test eax, eax
jne case.0x407607.2
add ebp, 1
xor eax, eax
xor edi, edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0xffffffff
jmp 0x407630
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4079ac
cmp eax, 2
jg 0x4079ac
xor esi, esi
xor edi, edi
mov eax, dword [esp + 0x8b4]
and eax, 1
test byte [esp + 0x8b4], 0xe
mov dword [esp + 0x50], eax
je 0x407a2b
test byte [esp + 0x8b4], 2
mov dword [esp + 0x30], 0x23494e46
mov dword [esp + 0x34], 0
je 0x4079da
test esi, esi
je 0x4088b5
test byte [esp + 0x8b4], 0x40
jne 0x4084c1
mov dword [esp + 0x38], 0x2be2
mov dword [esp + 0x2c], 0
mov dword [esp + 0x8b0], 0xfffffffc
mov eax, dword [esp + 0x2c]
or eax, dword [esp + 0x38]
jne 0x4080fb
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x8b4]
or ecx, edx
setne byte [esp + 0x67]
and eax, 0x10
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x8b4]
and eax, 0x20
mov dword [esp + 0x68], eax
jne 0x4081e1
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x8b0]
mov edx, 1
mov ebx, dword [esp + 0x8b0]
test eax, eax
cmovg edx, eax
mov ebp, edx
mov edx, dword [esp + 0x8b0]
neg edx
test ebx, ebx
cmovns edx, dword [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x60]
test edx, edx
je 0x40828e
cmp ebp, 0x10
jle 0x40826e
mov ecx, dword [esp + 0x28]
sub eax, 1
xor ebx, ebx
cdq
xor eax, edx
sub ecx, 1
mov dword [esp + 0x3c], ecx
mov ecx, eax
sub ecx, edx
mov eax, ecx
cdq
cmp ecx, 0x5f5e0ff
jle 0x40794b
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 8], 0x5f5e100
mov dword [esp + 0xc], 0
add ebx, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00410690
cmp edx, 0
ja 0x407920
cmp eax, 0x5f5e0ff
ja 0x407920
cmp edx, 0
mov ecx, eax
jbe 0x408513
add ebx, 4
cmp ecx, 0xf423f
jle 0x408530
add ebx, 2
xor eax, eax
cmp ecx, 0x989680
mov ebp, 1
setge al
lea eax, [ebx + eax + 3]
mov dword [esp + 0x40], eax
mov eax, 2
jmp 0x408291
cmp ebp, 1
jne case.0x407607.2
cmp dword [esp + 0x28], 0x2a
jne case.0x407607.2
xor eax, eax
xor edi, edi
mov ebp, 2
jmp 0x407630
xor eax, eax
cmp dword [esp + 0x18], 0x2b
mov ebx, dword [esp + 0x54]
mov edi, 1
cmove ebx, edi
mov dword [esp + 0x54], ebx
jmp 0x407630
mov dword [esp + 0x3c], 0xffffffff
mov ebp, 1
jmp 0x407630
test byte [esp + 0x8b4], 4
mov dword [esp + 0x30], 0x23494e44
mov dword [esp + 0x34], 0
jne 0x407833
test byte [esp + 0x8b4], 8
mov dword [esp + 0x30], 0x234e414e
mov dword [esp + 0x34], 0
jne 0x407833
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
jmp 0x407833
test esi, esi
jne 0x408900
mov eax, dword [esp + 0x2c]
or eax, dword [esp + 0x38]
jne 0x4080eb
lea eax, [ebp + 1]
mov byte [esp + 0x67], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 0
add eax, dword [esp + 0x3c]
cmp eax, 0x7f4
jle 0x407a82
mov eax, ebp
not eax
add eax, 0x7f4
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
jl 0x4082f7
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x68], 1
test ebx, ebx
js 0x4082fb
test edi, edi
mov byte [esp + 0x88f], 0
je 0x4080bc
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x408336
lea ebx, [esp + 0x88d]
mov byte [esp + 0x88e], 0x2d
mov eax, dword [esp + 0x40]
cmp eax, 2
jg 0x407ed4
test eax, eax
je 0x407aef
lea ecx, [esp + 0x8f]
lea esi, [esi]
cmp ebx, ecx
jb 0x407aea
mov byte [ebx], 0x5e
sub ebx, 1
sub eax, 1
jne 0x407ae0
mov eax, dword [esp + 0x3c]
neg eax
cmp dword [esp + 0x8b0], eax
mov dword [esp + 0x6c], eax
jge 0x40836f
sub eax, dword [esp + 0x8b0]
cmp eax, 0x13
mov ecx, eax
jle 0x4086e3
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
add edx, dword [esp + 0x40]
mov eax, 0
cmovns eax, edx
mov ecx, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407b6b
lea eax, [ecx - 1]
mov edx, 0x55555556
mov dword [esp + 0x60], eax
imul edx
mov eax, dword [esp + 0x60]
sar eax, 0x1f
sub edx, eax
add ecx, edx
lea eax, [ebp + 3]
mov dword [esp + 0x60], 1
cmp ecx, eax
jg 0x408362
cmp ebp, ecx
jge 0x4084b2
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x3c]
mov ebp, ecx
mov esi, dword [esp + 0x6c]
add edi, eax
cmp eax, esi
mov eax, 0
cmovle edi, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x28]
cmp ecx, 4
mov eax, ecx
jg 0x407c01
cmp byte [esp + 0x67], 0
je 0x407c01
test byte [esp + 0x8b4], 0x40
jne 0x407c01
cmp ecx, 1
jle 0x4087e0
mov ecx, 5
mov dword [esp + 0x60], 1
sub ecx, eax
mov eax, 0x24303030
shl ecx, 3
sar eax, cl
mov dword [esp + 0x30], eax
sar eax, 0x1f
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x407cca
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x8f]
test eax, eax
je 0x407cc0
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x3c]
mov ebp, ecx
jmp 0x407c42
cmp ebx, ebp
jb 0x407c3a
mov byte [ebx], 0x30
sub ebx, 1
sub edi, 1
sub esi, 1
je 0x407cba
test edi, edi
jg 0x407c30
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x408225
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, edx
or ecx, eax
je 0x40807b
cmp ebx, ebp
jb 0x407c6d
mov byte [ebx], al
sub ebx, 1
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
shrd eax, edx, 8
shr edx, 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.00410690
sub dword [esp + 0x28], 1
sub esi, 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edx
jne 0x407c42
mov ecx, ebp
mov ebp, dword [esp + 0x18]
cmp ebx, ecx
jb 0x407cca
mov byte [ebx], 0x2e
sub ebx, 1
xor esi, esi
lea ecx, [esp + 0x8f]
mov dword [esp + 0x18], ebp
jmp 0x407d08
mov eax, esi
and eax, 3
cmp eax, 3
jne 0x407d10
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x407d10
cmp ebx, ecx
jb 0x407d00
mov byte [ebx], 0x2c
sub ebx, 1
lea esi, [esi]
sub dword [esp + 0x18], 1
add esi, 1
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x407ce0
test edi, edi
jle 0x407d23
cmp ebx, ecx
jb 0x407d1e
mov byte [ebx], 0x30
sub ebx, 1
sub edi, 1
jmp 0x407d00
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x407de1
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ebp, edx
or ebp, eax
je 0x407da0
cmp ebx, ecx
jb 0x407d46
mov byte [ebx], al
sub ebx, 1
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
shrd eax, edx, 8
shr edx, 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.00410690
sub dword [esp + 0x28], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x3c]
jmp 0x407d00
cmp ebx, ecx
jb 0x407d5d
lea eax, [ebx - 1]
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
mov dword [esp + 0x3c], ecx
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.004107b0
add eax, 0x30
mov ecx, dword [esp + 0x3c]
mov byte [ebx], al
mov ebx, ebp
jmp 0x407d5d
test esi, esi
jne 0x407e00
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x407e00
cmp ebx, ecx
jb 0x407d00
mov byte [ebx], 0x30
sub ebx, 1
jmp 0x407d00
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x407e1d
lea ecx, [esp + 0x8f]
cmp ebx, ecx
jb 0x407e1d
mov byte [ebx], 0x24
sub ebx, 1
mov edi, dword [esp + 0x44]
test edi, edi
je 0x407e40
mov esi, dword [esp + 0x50]
lea ecx, [esp + 0x8f]
test esi, esi
je 0x408310
cmp ebx, ecx
jae 0x408508
test ebp, ebp
lea ecx, [esp + 0x8f]
mov eax, dword [esp + 0x58]
jle 0x407e5e
nop
cmp ebx, ecx
jb 0x407e59
mov byte [ebx], al
sub ebx, 1
sub ebp, 1
jne 0x407e50
cmp dword [esp + 0x60], 1
jne 0x407e76
lea eax, [esp + 0x8f]
cmp ebx, eax
jb 0x407e76
mov byte [ebx], 0x25
sub ebx, 1
mov edi, dword [esp + 0x5c]
add ebx, 1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0040de30
mov eax, edi
sub esp, 0xc
call fcn.004070a0
mov eax, dword [esp + 0x8b8]
and eax, 3
jne 0x4082be
mov edx, dword [esp + 0x8b8]
test edx, edx
js 0x4082e0
mov dword [esp], 0
call fcn.00405980
sub esp, 4
add esp, 0x89c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x60], 0
cmp ebp, 0xffffffff
je 0x407ee9
mov eax, dword [esp + 0x3c]
or eax, ebp
jne 0x407ef4
add ebp, 1
mov dword [esp + 0x60], 1
mov eax, dword [esp + 0x3c]
add eax, ebp
or esi, dword [esp + 0x50]
mov dword [esp + 0x18], eax
jne 0x407f21
or edi, dword [esp + 0x44]
jne 0x407f21
test ebp, ebp
jle 0x407f21
cmp eax, 1
mov edi, eax
setg al
cmp al, 1
mov eax, edi
adc eax, 0xffffffff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
or eax, dword [esp + 0x38]
je 0x408238
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
add esi, dword [esp + 0x8b0]
cmp edi, eax
jge 0x4083a6
sub eax, edi
mov edi, eax
sub esi, eax
test esi, esi
mov dword [esp + 0x18], 0x2b
jns 0x407f66
neg esi
mov dword [esp + 0x18], 0x2d
cmp dword [esp + 0x40], 3
lea ecx, [esp + 0x8f]
je 0x407fc9
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x8f]
cmp ebx, ecx
jb 0x407fac
mov eax, 0x66666667
sub ebx, 1
imul esi
mov eax, esi
sar eax, 0x1f
sar edx, 2
sub edx, eax
lea eax, [edx + edx*4]
mov edx, esi
add eax, eax
sub edx, eax
mov eax, edx
add eax, 0x30
mov byte [ebx + 1], al
mov eax, 0x66666667
sub edi, 1
imul esi
sar esi, 0x1f
sar edx, 2
sub edx, esi
cmp edi, 3
mov esi, edx
jne 0x407f83
mov edi, dword [esp + 0x20]
cmp esi, 9
jg 0x408010
cmp ebx, ecx
jb 0x408399
lea edx, [esi + 0x30]
lea eax, [ebx - 1]
mov byte [ebx], dl
cmp eax, ecx
jb 0x4086d4
movzx edx, byte [esp + 0x18]
lea ebx, [eax - 1]
cmp ebx, ecx
mov byte [eax], dl
jb 0x408399
lea ebx, [eax - 2]
mov byte [eax - 1], 0x45
mov dword [esp + 0x20], 0
jmp 0x407bb8
cmp ebx, ecx
jb 0x408039
mov eax, 0x66666667
sub ebx, 1
imul esi
mov eax, esi
sar eax, 0x1f
sar edx, 2
sub edx, eax
lea eax, [edx + edx*4]
mov edx, esi
add eax, eax
sub edx, eax
mov eax, edx
add eax, 0x30
mov byte [ebx + 1], al
mov eax, 0x66666667
imul esi
sar esi, 0x1f
sar edx, 2
sub edx, esi
cmp edx, 9
mov esi, edx
jg 0x408010
cmp ebx, ecx
mov dword [esp + 0x20], 0
jb 0x407bb8
lea eax, [ebx - 1]
lea edx, [edx + 0x30]
cmp eax, ecx
mov byte [ebx], dl
jb 0x408397
lea eax, [ebx - 2]
mov byte [ebx - 1], 0x25
jmp 0x407fde
cmp ebx, ebp
jb 0x407c84
mov ecx, dword [esp + 0x38]
lea eax, [ebx - 1]
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
mov dword [esp + 0x3c], eax
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.004107b0
add eax, 0x30
mov byte [ebx], al
mov ebx, dword [esp + 0x3c]
jmp 0x407c84
mov edx, dword [esp + 0x44]
test edx, edx
jne 0x408356
mov eax, dword [esp + 0x50]
test eax, eax
je 0x408356
sub ebp, 1
mov dword [esp + 0x44], 1
lea ebx, [esp + 0x88e]
jmp 0x407ac1
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
cmp dword [esp + 0x2c], 0
ja 0x408110
cmp dword [esp + 0x38], 0x5f5e0ff
jbe 0x4088d0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
xor ebx, ebx
lea esi, [esi]
mov dword [esp], ecx
mov dword [esp + 8], 0x5f5e100
add ebx, 8
mov dword [esp + 0xc], 0
mov dword [esp + 4], edx
call fcn.00410690
cmp edx, 0
mov ecx, eax
ja 0x408120
cmp eax, 0x5f5e0ff
ja 0x408120
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
or eax, dword [esp + 0x34]
setne byte [esp + 0x67]
cmp edx, 0
ja 0x40820b
cmp ecx, 0x270f
ja 0x40820b
imul eax, dword [esp + 0x18], 0x2710
cmp eax, 0xf423f
jle 0x40821d
add ebx, 2
cmp eax, 0x989680
setge al
movzx eax, al
add ebx, eax
test esi, esi
lea eax, [ebx + 1]
mov dword [esp + 0x28], eax
lea eax, [ebp + 1]
je 0x407a61
mov eax, dword [esp + 0x8b4]
and eax, 0x10
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x8b4]
and eax, 0x20
mov dword [esp + 0x68], eax
je 0x4085c1
cmp dword [esp + 0x28], 7
jle 0x408538
sub ebx, 6
cmp ebx, 0x13
jle 0x408880
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0
neg eax
mov dword [esp + 0x8b0], eax
jmp 0x4078ad
mov eax, dword [esp + 0x18]
add ebx, 4
cmp eax, 0xf423f
jg 0x408186
imul eax, eax, 0x64
jmp 0x408189
cmp ebx, ebp
jb 0x407c3d
mov byte [ebx], 0x30
sub ebx, 1
jmp 0x407c3d
xor esi, esi
cmp dword [esp + 0x40], 3
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], 0x2b
lea ecx, [esp + 0x8f]
jne 0x407f74
jmp 0x407fce
xor eax, eax
xor edi, edi
mov dword [esp + 0x4c], 1
jmp 0x407630
mov ecx, dword [esp + 0x68]
test ecx, ecx
setne cl
cmp ebp, 7
setg dl
test cl, dl
jne 0x4078f4
cmp eax, 0xfffffffe
jl 0x4078f4
lea eax, [ebp + 1]
mov edx, dword [esp + 0x50]
test edx, edx
je 0x407a61
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], 1
jmp 0x407a61
add ebp, 1
xor eax, eax
xor edi, edi
jmp 0x407630
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.00409270
sub esp, 8
mov edx, dword [esp + 0x8b8]
test edx, edx
jns 0x407eba
mov eax, dword [esp + 0x48]
add eax, 8
mov dword [esp], eax
call fcn.0040a490
sub esp, 4
jmp 0x407eba
not eax
sub ebp, eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x3c], 0
jmp 0x407a96
cmp ebx, ecx
jb 0x407e40
mov ecx, dword [esp + 0x54]
movzx edi, byte [esp + 0x58]
mov eax, 0x2b
test ecx, ecx
cmove eax, edi
sub ebx, 1
mov byte [ebx + 1], al
jmp 0x407e40
cmp dword [esp + 0x54], 1
lea ebx, [esp + 0x88d]
sbb eax, eax
and eax, 0xfffffff5
add eax, 0x2b
mov byte [esp + 0x88e], al
jmp 0x407ac1
lea ebx, [esp + 0x88e]
jmp 0x407ac1
mov dword [esp + 0x40], 3
jmp 0x407edc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x8b0]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
jmp 0x407b38
mov ebx, eax
mov dword [esp + 0x20], 0
jmp 0x407bb8
mov edi, 0
jle 0x407f50
mov edi, dword [esp + 0x28]
sub edi, dword [esp + 0x18]
cmp edi, 0x13
jle 0x40883e
mov eax, dword [esp + 0x18]
add esi, edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0
test eax, eax
jle 0x408807
mov edi, dword [esp + 0x18]
mov eax, 0xa
xor edx, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x6c], ebp
mov ecx, eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
mov ebp, esi
mov ebx, edx
test edi, 1
je 0x408435
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov esi, edx
imul eax, ebx
imul esi, ecx
add esi, eax
mov eax, dword [esp + 0x20]
mul ecx
mov dword [esp + 0x24], edx
add dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov esi, ebx
mov eax, ecx
imul esi, ecx
mul ecx
add esi, esi
mov ebx, edx
mov ecx, eax
add ebx, esi
sar edi, 1
jne 0x408409
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x2c], edi
mov esi, ebp
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x6c]
jb 0x408807
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
jbe 0x4087fd
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0xa
add esi, 1
mov dword [esp + 0xc], 0
xor edi, edi
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.00410690
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jmp 0x407f50
mov ecx, ebp
mov dword [esp + 0x60], 0
jmp 0x407b86
mov dword [esp + 0x50], 0
mov dword [esp + 0x8b0], 0
xor ebx, ebx
mov dword [esp + 0x30], 0x74727565
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x4d2
mov dword [esp + 0x2c], 0
mov byte [esp + 0x67], 1
mov dword [esp + 0x18], 0x4d2
jmp 0x408173
mov byte [ebx], 0x2d
sub ebx, 1
jmp 0x407e40
cmp eax, 0x270f
ja 0x407956
imul ecx, eax, 0x2710
cmp ecx, 0xf423f
jg 0x407965
imul ecx, ecx, 0x64
jmp 0x407968
mov ebx, dword [esp + 0x28]
test ebx, ebx
jle 0x4088f4
mov ebp, dword [esp + 0x28]
mov eax, 1
xor edx, edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], esi
mov ecx, 0xa
xor ebx, ebx
mov esi, eax
mov edi, edx
test ebp, 1
je 0x408586
mov edx, edi
mov eax, ebx
imul edx, ecx
imul eax, esi
add eax, edx
mov dword [esp + 0x18], eax
mov eax, esi
mov edi, dword [esp + 0x18]
mul ecx
mov esi, eax
add edi, edx
mov eax, ebx
imul eax, ecx
add eax, eax
mov dword [esp + 0x18], eax
mov eax, ecx
mov ebx, dword [esp + 0x18]
mul ecx
add ebx, edx
sar ebp, 1
mov ecx, eax
jne 0x408562
mov ecx, esi
mov ebx, edi
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
xor edx, ebx
xor eax, ecx
or edx, eax
je 0x408816
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4078ad
mov ebp, dword [esp + 0x28]
cmp ebp, 1
jle 0x4078ad
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004107b0
or edx, eax
jne 0x4078ad
mov dword [esp + 0x18], edi
mov dword [esp + 0x6c], esi
mov edi, ebp
mov esi, ebx
mov ebp, dword [esp + 0x8b0]
mov ebx, dword [esp + 0x2c]
jmp 0x408640
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004107b0
or edx, eax
jne 0x40866b
mov dword [esp], esi
mov dword [esp + 4], ebx
sub edi, 1
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
add ebp, 1
call fcn.00410690
cmp edi, 1
mov esi, eax
mov ebx, edx
jne 0x408620
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], esi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x8b0], ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x2c], ebx
jmp 0x4078ad
mov dword [eax], 0
xor esi, esi
mov dword [esp + 0x54], 0
mov dword [esp + 0x44], 0
xor edi, edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0xffffffff
xor ebp, ebp
mov dword [esp + 0x58], 0x20
jmp 0x4077f9
mov ebx, eax
mov dword [esp + 0x20], 0
jmp 0x407bb8
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
call fcn.00407230
mov ecx, edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
or ecx, eax
je 0x40897f
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x8b0]
add eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x40], eax
jle 0x40896a
xor ecx, ecx
mov edx, 0xa
mov dword [esp + 0x60], ebx
mov dword [esp + 0x78], ebp
mov ebx, ecx
mov ebp, esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
mov ecx, edx
mov dword [esp + 0x7c], edi
mov esi, eax
test esi, 1
je 0x408774
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edi, edx
imul eax, ebx
imul edi, ecx
add edi, eax
mov eax, dword [esp + 0x18]
mul ecx
mov dword [esp + 0x1c], edx
add dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov edi, ebx
mov eax, ecx
imul edi, ecx
mul ecx
add edi, edi
mov ebx, edx
mov ecx, eax
add ebx, edi
sar esi, 1
jne 0x408748
mov esi, ebp
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
xor eax, dword [esp + 0x70]
xor edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
or edx, eax
mov dword [esp + 0x18], ecx
jne 0x407b38
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x18], eax
jmp 0x407b38
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x60], 1
jmp 0x407c01
cmp dword [esp + 0x38], eax
jae 0x408474
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x28], eax
jmp 0x407f50
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], 1
add dword [esp + 0x8b0], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
jmp 0x4078ad
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov ecx, edi
add esi, edi
call fcn.00407230
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
test eax, eax
jg 0x4083e0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
jmp 0x408462
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov ecx, ebx
call fcn.00407230
mov ecx, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edx
or ecx, eax
je 0x4081e1
add dword [esp + 0x8b0], ebx
mov dword [esp + 0x28], 7
jmp 0x408544
mov dword [esp + 0x8b0], 0xfffffffc
mov dword [esp + 0x38], 0x2be2
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov ebx, eax
or ebx, edx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x2c]
setne byte [esp + 0x67]
xor ebx, ebx
jmp 0x40815e
mov ecx, 1
xor ebx, ebx
jmp 0x4085ad
test byte [esp + 0x8b4], 0x40
jne 0x408920
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
jmp 0x407864
mov eax, dword [esp + 0x2c]
or eax, dword [esp + 0x38]
jne 0x4084c1
mov dword [esp + 0x8b0], 0
xor ebx, ebx
mov dword [esp + 0x30], 0x616c7365
mov dword [esp + 0x34], 0x66
mov dword [esp + 0x38], 0x3039
mov eax, 0x3039
mov dword [esp + 0x2c], 0
mov byte [esp + 0x67], 1
jmp 0x40820f
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
jmp 0x408797
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x18], eax
jmp 0x407b38