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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x58
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x8c]
mov edi, dword [0x4534ec]
mov dword [esp + 0x48], edi
xor edx, edx
test eax, eax
cmovns edx, eax
mov edi, dword [esp + 0x6c]
mov edi, dword [edi + 8]
mov dword [esp + 0x3c], edi
cmp eax, 7
setg al
movzx eax, al
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x54], eax
sub edx, eax
mov dword [esp + 0x20], edx
cmp dword [esp + 0xa0], 2
je 0x4153a5
mov dword [esp + 0x50], 0
mov dword [esp + 0x24], 0
mov edi, dword [esp + 0x48]
mov eax, edi
neg eax
and eax, 3
add edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x3c]
add eax, eax
add eax, eax
lea ecx, [edi + eax]
mov edx, ecx
neg edx
and edx, 3
lea edi, [ecx + edx]
mov dword [esp + 0x1c], edi
lea ecx, [edi + eax]
mov edx, ecx
neg edx
and edx, 3
lea edi, [ecx + edx]
mov dword [esp], edi
lea ecx, [edi + eax]
mov edx, ecx
neg edx
and edx, 3
lea edi, [ecx + edx]
mov dword [esp + 0x14], edi
add eax, edi
mov dword [0x4534ec], eax
mov eax, dword [esp + 0xa0]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x70], eax
jge 0x414916
mov eax, dword [esp + 0x6c]
mov ebx, dword [eax + 0x20]
mov eax, dword [esp + 0x80]
sub eax, 5
sub eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
lea edi, [eax + 3]
mov eax, dword [esp + 0x70]
lea esi, [eax + 1]
mov dword [esp + 8], edi
mov edi, ebx
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x18]
jmp 0x41489d
mov esi, eax
movsx edx, word [edi + esi*2]
movsx eax, word [edi + esi*2 - 2]
sub edx, eax
lea eax, [edx + edx]
add eax, edx
movzx ecx, byte [esp + 0xa4]
shl eax, cl
add eax, eax
add eax, eax
add eax, eax
sar eax, 4
cmp eax, ebp
cmovl eax, ebp
mov ecx, dword [esp + 0xa0]
imul ecx, edx
mov ebx, dword [esp + 4]
imul ecx, ebx
mov ebx, dword [esp + 0x74]
sub ebx, esi
imul ebx, ecx
movzx ecx, byte [esp + 8]
shl ebx, cl
sar ebx, 6
movzx ecx, byte [esp + 0xa4]
shl edx, cl
cmp edx, 1
jne 0x4148fa
sub ebx, ebp
mov edx, dword [esp]
mov dword [edx + esi*4 - 4], eax
mov eax, dword [esp + 0x14]
mov dword [eax + esi*4 - 4], ebx
lea eax, [esi + 1]
cmp esi, dword [esp + 0x74]
jne 0x41489b
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x6c]
mov edi, dword [eax + 0x30]
lea ecx, [edi - 1]
mov eax, dword [esp + 0x74]
sub eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x74]
add eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x7c]
mov eax, dword [esp + 0x28]
add eax, ecx
sar eax, 1
mov edi, dword [esp + 0x74]
cmp dword [esp + 0x70], edi
jge 0x414b70
mov edi, dword [esp + 0x6c]
mov ebx, dword [edi + 0x20]
mov dword [esp + 8], ebx
mov edi, dword [esp + 0x3c]
imul edi, eax
mov esi, dword [esp + 0x70]
sub esi, 1
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x30], esi
mov dword [esp + 4], 0
xor esi, esi
mov edx, dword [esp + 0x40]
movsx ebx, word [ebx + edx]
mov edx, dword [esp + 0x6c]
add edi, dword [edx + 0x34]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x30]
jmp 0x4149cc
mov ecx, dword [ebp + edx*4]
cmp eax, ecx
cmovle ecx, eax
add dword [esp + 4], ecx
mov esi, 1
sub edx, 1
mov eax, dword [esp + 0xc]
cmp edx, eax
je 0x414a33
mov ecx, ebx
mov eax, dword [esp + 8]
movsx ebx, word [eax + edx*2]
sub ecx, ebx
imul ecx, dword [esp + 0xa0]
movzx eax, byte [edi + edx]
imul eax, ecx
movzx ecx, byte [esp + 0xa4]
shl eax, cl
sar eax, 2
test eax, eax
jle 0x414a07
mov ecx, dword [esp + 0x14]
add eax, dword [ecx + edx*4]
mov ecx, 0
cmovs eax, ecx
mov ecx, dword [esp + 0x78]
add eax, dword [ecx + edx*4]
mov ecx, dword [esp]
cmp dword [ecx + edx*4], eax
jle 0x4149af
test esi, esi
jne 0x4149af
xor esi, esi
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jl 0x4149c1
add dword [esp + 4], ecx
sub edx, 1
mov eax, dword [esp + 0xc]
cmp edx, eax
jne 0x4149cc
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 4]
cmp dword [esp + 0x20], esi
jge 0x414b64
lea ecx, [eax - 1]
cmp dword [esp + 0x28], ecx
jle 0x41494d
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x28]
lea edx, [esi - 1]
mov dword [esp + 4], edx
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x70], eax
jge 0x4154af
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x6c]
mov ecx, dword [ebx + 0x34]
mov ebx, dword [esp + 0x3c]
mov eax, ebx
imul eax, edx
imul ebx, esi
mov edx, ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x30], ebx
add eax, ecx
mov dword [esp + 8], eax
add ecx, edx
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0x34]
mov ebp, ebx
mov ecx, dword [esp + 0xa4]
jmp 0x414b22
mov edi, dword [esp + 0x7c]
mov edx, dword [edi + ebx*4]
test eax, eax
jle 0x414ad0
mov edi, dword [esp + 0x14]
add eax, dword [edi + ebx*4]
mov edi, 0
cmovs eax, edi
test edx, edx
jle 0x414ae3
mov edi, dword [esp + 0x14]
add edx, dword [edi + ebx*4]
mov edi, 0
cmovs edx, edi
mov edi, dword [esp + 0x78]
mov edi, dword [edi + ebx*4]
cmp dword [esp + 4], 0
jle 0x414af3
add eax, edi
add edx, edi
test edi, edi
cmovg ebp, ebx
sub edx, eax
mov edi, dword [esp + 0x10]
mov dword [edi + ebx*4], eax
mov eax, 0
cmovs edx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax + ebx*4], edx
add ebx, 1
cmp dword [esp + 0x74], ebx
je 0x414b7d
mov eax, dword [esp + 0x6c]
mov edi, dword [eax + 0x30]
movsx edx, word [esi + ebx*2 + 2]
movsx eax, word [esi + ebx*2]
sub edx, eax
imul edx, dword [esp + 0xa0]
mov eax, dword [esp + 8]
movzx eax, byte [eax + ebx]
imul eax, edx
shl eax, cl
sar eax, 2
cmp dword [esp + 0x28], edi
jge 0x414ab6
mov edi, dword [esp + 0xc]
movzx edi, byte [edi + ebx]
imul edx, edi
shl edx, cl
sar edx, 2
jmp 0x414abd
add eax, 1
mov dword [esp + 0x28], eax
jmp 0x414a4c
mov dword [esp + 4], 0
jmp 0x414a3b
mov dword [esp + 0x30], ebp
xor eax, eax
cmp dword [esp + 0xa0], 1
setg al
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa4]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], 6
mov eax, 0x40
mov dword [esp + 8], 0
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 8]
lea esi, [edi + eax]
sar esi, 1
mov edi, dword [esp + 0x74]
cmp dword [esp + 0x70], edi
jge 0x414ec3
mov edi, dword [esp + 0x70]
sub edi, 1
mov edx, dword [esp + 0x2c]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 4], eax
mov dword [esp + 0x7c], ebp
jmp 0x414c06
mov ebx, dword [esp + 0x7c]
mov ebx, dword [ebx + edx*4]
cmp eax, ebx
cmovle ebx, eax
add ecx, ebx
mov ebx, 1
sub edx, 1
cmp edx, edi
je 0x414c3c
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + edx*4]
imul eax, esi
sar eax, 6
mov ebp, dword [esp + 0x10]
add eax, dword [ebp + edx*4]
mov ebp, dword [esp]
cmp eax, dword [ebp + edx*4]
jge 0x414bec
test ebx, ebx
jne 0x414bec
xor ebx, ebx
mov ebp, dword [esp + 0x18]
cmp eax, ebp
jl 0x414bff
add ecx, ebp
sub edx, 1
cmp edx, edi
jne 0x414c06
mov eax, dword [esp + 4]
mov ebp, dword [esp + 0x7c]
cmp dword [esp + 0x20], ecx
cmovl eax, esi
cmovl esi, dword [esp + 8]
mov dword [esp + 8], esi
sub dword [esp + 0xc], 1
jne 0x414bbc
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x70], eax
jge 0x414ce5
mov eax, dword [esp + 0x70]
lea esi, [eax - 1]
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], 0
xor ebx, ebx
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 8]
mov ebp, dword [esp + 0x7c]
jmp 0x414cb5
mov ebx, 1
cmp eax, dword [ebp + edx*4]
cmovg eax, dword [ebp + edx*4]
mov ecx, dword [esp + 0x94]
mov dword [ecx + edx*4], eax
add dword [esp + 4], eax
sub edx, 1
cmp dword [esp + 0xc], edx
je 0x414ced
mov eax, dword [esi + edx*4]
imul eax, edi
sar eax, 6
mov ecx, dword [esp + 0x10]
add eax, dword [ecx + edx*4]
mov ecx, dword [esp]
cmp dword [ecx + edx*4], eax
jle 0x414c90
test ebx, ebx
jne 0x414c90
mov ebx, dword [esp + 0x18]
cmp eax, ebx
jl 0x414cdf
mov eax, ebx
xor ebx, ebx
jmp 0x414c95
xor eax, eax
xor ebx, ebx
jmp 0x414c95
mov dword [esp + 4], 0
mov eax, dword [esp + 0x70]
add eax, eax
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x30], edi
jge 0x4154cd
mov eax, dword [esp + 0x18]
add eax, 8
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
add eax, 2
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x70]
neg eax
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x2c]
jmp 0x414df4
xor eax, eax
cmp esi, 0x11
jle 0x414d45
xor eax, eax
cmp dword [esp + 0xb0], ebx
setle al
lea eax, [eax + eax + 7]
cmp dword [esp + 0x38], esi
jge 0x415282
mov edx, dword [esp + 8]
imul edx, eax
mov eax, edx
movzx ecx, byte [esp + 0xa4]
shl eax, cl
add eax, eax
add eax, eax
add eax, eax
sar eax, 4
cmp ebp, eax
jle 0x414d7c
cmp dword [esp + 0xb4], ebx
jge 0x415282
push 1
push 0
push dword [esp + 0xb0]
call fcn.004188e4
add esp, 0xc
add dword [esp + 4], 8
sub ebp, 8
mov eax, dword [esp + 0x94]
mov esi, dword [eax + ebx*4]
mov ecx, dword [esp + 0x24]
add esi, ecx
sub dword [esp + 4], esi
mov eax, dword [esp + 4]
test ecx, ecx
je 0x414dc9
mov esi, dword [esp + 0x34]
movzx esi, byte [esi + ebx + 0x447f64]
mov dword [esp + 0x24], esi
add eax, esi
mov dword [esp + 4], eax
xor eax, eax
mov esi, dword [esp + 0x18]
cmp ebp, esi
jl 0x414dd9
mov eax, esi
add dword [esp + 4], esi
mov esi, dword [esp + 0x94]
mov dword [esi + ebx*4], eax
lea eax, [ebx - 1]
mov esi, dword [esp + 0x30]
cmp eax, esi
je 0x414eca
mov ebx, eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 4]
sub edx, eax
mov eax, dword [esp + 0x6c]
mov esi, dword [eax + 0x20]
lea eax, [ebx + ebx]
mov edi, eax
lea eax, [eax + 2]
mov dword [esp + 0x28], eax
movsx ebp, word [esi + edi + 2]
mov eax, dword [esp + 0x14]
movsx eax, word [esi + eax]
mov ecx, ebp
mov dword [esp + 0x10], eax
sub ecx, eax
mov dword [esp + 0xc], edx
mov eax, edx
xor edx, edx
div ecx
movsx edx, word [esi + edi]
sub ebp, edx
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x94]
mov esi, dword [esi + ebx*4]
imul ecx, eax
mov ebp, dword [esp + 0xc]
sub ebp, ecx
mov ecx, dword [esp + 0x10]
sub edx, ecx
sub ebp, edx
mov edx, 0
cmovs ebp, edx
mov edx, dword [esp + 8]
imul eax, edx
add eax, esi
add ebp, eax
mov eax, dword [esp]
mov eax, dword [eax + ebx*4]
mov edx, dword [esp + 0x1c]
cmp edx, eax
cmovge eax, edx
cmp ebp, eax
jl 0x414da1
lea esi, [ebx + 1]
mov eax, dword [esp + 0xac]
test eax, eax
jne 0x414d2e
push 1
push dword [esp + 0xac]
call fcn.0041851c
pop edx
pop ecx
test eax, eax
je 0x414d8f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4152a1
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], esi
jmp 0x414ef5
xor ecx, ecx
jmp 0x414c44
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], ebx
mov edi, dword [esp + 0x54]
add dword [esp + 0x20], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4152ad
mov esi, dword [esp + 0xac]
test esi, esi
jne 0x4153e3
mov eax, dword [esp + 0x2c]
add eax, 1
sub eax, dword [esp + 0x70]
push eax
push dword [esp + 0xac]
call fcn.00418724
add eax, dword [esp + 0x78]
mov edi, dword [esp + 0x8c]
mov dword [edi], eax
pop edx
pop ecx
cmp dword [esp + 0x70], eax
jl 0x415468
mov edi, dword [esp + 0x50]
add dword [esp + 0x20], edi
mov eax, dword [esp + 0x88]
mov dword [eax], 0
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 4]
sub ebx, eax
mov eax, dword [esp + 0x6c]
mov edi, dword [eax + 0x20]
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x44]
movsx ecx, word [edi + eax]
mov eax, dword [esp + 0x14]
movsx eax, word [edi + eax]
sub ecx, eax
mov eax, ebx
xor edx, edx
div ecx
imul ecx, eax
sub ebx, ecx
mov ebp, dword [esp + 0x2c]
cmp dword [esp + 0x70], ebp
jge 0x4154a3
mov edx, dword [esp + 0x70]
mov dword [esp], ebx
mov ebx, edi
mov esi, dword [esp + 0x94]
movsx ecx, word [ebx + edx*2 + 2]
movsx edi, word [ebx + edx*2]
sub ecx, edi
imul ecx, eax
add dword [esi + edx*4], ecx
add edx, 1
cmp edx, ebp
jne 0x414f8b
mov ebx, dword [esp]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x94]
movsx eax, word [ecx + edx*2 + 2]
movsx ebp, word [ecx + edx*2]
sub eax, ebp
cmp eax, ebx
cmovg eax, ebx
add dword [esi + edx*4], eax
sub ebx, eax
add edx, 1
cmp edx, edi
jne 0x414fb9
mov eax, dword [esp + 0x14]
add eax, eax
add eax, dword [esp + 0x94]
mov esi, eax
mov dword [esp], 0
mov eax, dword [esp + 0x40]
add eax, 3
mov dword [esp + 0x24], eax
mov ebp, esi
mov ebx, dword [esp + 0x70]
jmp 0x415067
mov eax, dword [esp + 0x98]
mov edx, dword [eax + ebx*4]
mov eax, esi
movzx ecx, byte [esp + 0x24]
sar eax, cl
mov ecx, 8
sub ecx, edx
cmp eax, ecx
cmovg eax, ecx
add edx, eax
mov edi, dword [esp + 0x98]
mov dword [edi + ebx*4], edx
imul eax, dword [esp + 0xa0]
add eax, eax
add eax, eax
add eax, eax
mov edx, esi
mov edi, dword [esp]
sub edx, edi
cmp eax, edx
setge dl
movzx edx, dl
mov edi, dword [esp + 0x9c]
mov dword [edi + ebx*4], edx
sub esi, eax
mov dword [esp], esi
add ebx, 1
add ebp, 4
mov eax, dword [esp + 0x2c]
cmp ebx, eax
je 0x415210
mov edi, dword [esp + 0x1c]
movsx eax, word [edi + ebx*2 + 2]
movsx edx, word [edi + ebx*2]
sub eax, edx
movzx ecx, byte [esp + 0xa4]
shl eax, cl
mov edx, dword [esp]
add edx, dword [ebp]
cmp eax, 1
jle 0x4152f2
mov edi, dword [esp + 0x7c]
mov esi, edx
sub esi, dword [edi + ebx*4]
mov ecx, 0
cmovs esi, ecx
sub edx, esi
mov dword [esp + 0x10], edx
mov dword [ebp], edx
mov ecx, dword [esp + 0xa0]
imul ecx, eax
mov edi, dword [esp + 0x6c]
mov edx, dword [edi + 0x38]
movsx edx, word [edx + ebx*2]
mov edi, dword [esp + 0x3c]
add edx, edi
cmp dword [esp + 0xa0], 2
jne 0x415328
cmp eax, 2
jle 0x415328
mov eax, dword [esp + 0x88]
mov eax, dword [eax]
test eax, eax
jne 0x4150f9
mov eax, dword [esp + 0x84]
cmp dword [eax], ebx
setg al
movzx eax, al
add ecx, eax
imul edx, ecx
mov dword [esp + 0x20], edx
sar edx, 1
lea eax, [ecx + ecx]
mov dword [esp + 8], eax
lea edi, [eax + eax]
lea eax, [edi + ecx]
add eax, eax
add eax, eax
add eax, ecx
sub edx, eax
mov dword [esp + 4], edx
lea eax, [edi + edi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 4]
add eax, edx
mov dword [esp + 0xc], eax
mov edi, dword [esp + 8]
add edi, edi
add edi, edi
add edi, edi
cmp eax, edi
jge 0x415371
mov edi, dword [esp + 0x20]
sar edi, 2
add edx, edi
mov dword [esp + 4], edx
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0xc], eax
mov edx, dword [esp + 8]
add edx, edx
mov eax, dword [esp + 0xc]
add eax, edx
mov edx, 0
cmovs eax, edx
xor edx, edx
div ecx
shr eax, 3
mov edi, dword [esp + 0x98]
mov dword [edi + ebx*4], eax
mov edx, dword [ebp]
mov edi, dword [esp + 0xa0]
imul edi, eax
mov ecx, edx
sar ecx, 3
cmp edi, ecx
jle 0x4151a0
movzx ecx, byte [esp + 0x40]
sar edx, cl
mov eax, edx
sar eax, 3
mov edx, 8
cmp eax, edx
cmovg eax, edx
mov edi, dword [esp + 0x98]
mov dword [edi + ebx*4], eax
mov edi, dword [esp + 0x14]
imul eax, edi
mov edx, dword [esp + 4]
add edx, dword [ebp]
cmp eax, edx
setge al
movzx eax, al
mov edi, dword [esp + 0x9c]
mov dword [edi + ebx*4], eax
mov edi, dword [esp + 0x98]
mov eax, dword [esp + 0xa0]
imul eax, dword [edi + ebx*4]
add eax, eax
add eax, eax
add eax, eax
sub dword [ebp], eax
test esi, esi
jne 0x414ffe
mov dword [esp], 0
add ebx, 1
add ebp, 4
mov eax, dword [esp + 0x2c]
cmp ebx, eax
jne 0x415067
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x90]
mov edi, dword [esp]
mov dword [eax], edi
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x74], eax
jle 0x41526d
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
mov ebp, dword [esp + 0x9c]
mov edx, dword [ebx + eax*4]
sar edx, cl
sar edx, 3
mov dword [esi + eax*4], edx
mov dword [ebx + eax*4], 0
xor edx, edx
cmp dword [esi + eax*4], 0
setle dl
mov dword [ebp + eax*4], edx
add eax, 1
cmp edi, eax
jne 0x415247
mov eax, dword [esp + 0x48]
mov dword [0x4534ec], eax
mov eax, dword [esp + 0x2c]
add esp, 0x58
pop ebx
pop esi
pop edi
pop ebp
ret
push 1
push 1
push dword [esp + 0xb0]
call fcn.004188e4
add esp, 0xc
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x4153ef
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x84]
mov dword [eax], 0
mov edi, dword [esp + 0x70]
test edi, edi
jns 0x414f26
mov esi, dword [esp + 0x50]
test esi, esi
je 0x414f2e
mov ebx, dword [esp + 0xac]
test ebx, ebx
je 0x415474
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x2c]
jmp 0x41543d
mov esi, edx
mov eax, dword [esp + 0x18]
sub esi, eax
mov eax, 0
cmovs esi, eax
sub edx, esi
mov dword [ebp], edx
mov eax, dword [esp + 0x98]
mov dword [eax + ebx*4], 0
mov eax, dword [esp + 0x9c]
mov dword [eax + ebx*4], 1
jmp 0x4151ef
imul edx, ecx
mov dword [esp + 0x20], edx
sar edx, 1
lea edi, [ecx + ecx]
mov dword [esp + 8], edi
add edi, edi
mov dword [esp + 0xc], edi
add edi, ecx
add edi, edi
add edi, edi
add edi, ecx
sub edx, edi
mov edi, edx
mov dword [esp + 4], edx
mov edx, dword [esp + 0xc]
add edx, edx
mov dword [esp + 0x14], edx
cmp eax, 2
jne 0x415122
mov eax, edx
sar eax, 2
add edi, eax
mov dword [esp + 4], edi
jmp 0x415122
mov eax, dword [esp + 8]
add eax, ecx
add eax, eax
add eax, eax
add eax, eax
cmp dword [esp + 0xc], eax
jge 0x415159
mov eax, dword [esp + 0x20]
sar eax, 3
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x10]
add edi, eax
mov dword [esp + 0xc], edi
jmp 0x415159
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x70]
movzx eax, byte [eax + 0x447f64]
mov dword [esp + 0x24], eax
mov edi, edx
cmp edx, eax
jl 0x4147dd
sub edi, eax
mov edx, edi
xor eax, eax
cmp edi, 7
setg al
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x50], eax
sub edx, eax
mov dword [esp + 0x20], edx
jmp 0x4147ed
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x84]
mov eax, dword [eax]
cmp esi, eax
cmovle eax, esi
mov edx, eax
mov eax, dword [esp + 0x84]
mov dword [eax], edx
lea eax, [esi + 1]
sub eax, dword [esp + 0x70]
push eax
mov eax, edx
sub eax, dword [esp + 0x74]
push eax
push dword [esp + 0xb0]
call fcn.00418dc4
add esp, 0xc
mov eax, dword [esp + 0x84]
mov eax, dword [eax]
cmp dword [esp + 0x70], eax
jge 0x415492
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x4154bc
push 1
mov eax, dword [esp + 0x8c]
push dword [eax]
push dword [esp + 0xb0]
call fcn.004188e4
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], esi
jmp 0x414f3b
mov ebp, dword [esp + 0x50]
test ebp, ebp
je 0x414f2e
push 1
push dword [esp + 0xac]
call fcn.0041851c
mov edi, dword [esp + 0x90]
mov dword [edi], eax
pop edx
pop ecx
jmp 0x414f3b
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], esi
jmp 0x414f26
mov dword [esp], 0
jmp 0x415214
mov eax, dword [esp + 0x70]
mov dword [esp + 0x30], eax
jmp 0x414b81
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], esi
jmp 0x414f2e
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
jmp 0x414ed2