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

Disassembly:
mov ecx, dword [0x5d55ec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x70]
cmp eax, dword [ecx + 8]
jbe 0x478d2c
sub esp, 0xf0
mov eax, dword [esp + 0xfc]
test eax, eax
sete dl
mov ebx, dword [esp + 0xf8]
test ebx, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebp, edx
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x47855f
mov ecx, dword [esp + 0x100]
test ecx, ecx
jg 0x478193
bsf edx, ebx
jne 0x4780df
mov edx, 0x20
bsf ebp, eax
jne 0x4780e9
mov ebp, 0x20
mov esi, ecx
xchg esi, ebx
neg ebx
xchg esi, ebx
cmp ebx, 1
sbb edi, edi
xor edi, 0xffffffff
xchg edi, ebx
not ebx
xchg edi, ebx
and edi, ebp
add edx, edi
cmp esi, edx
jg 0x478193
mov edx, dword [esp + 0xf4]
mov dword [esp], edx
mov edx, ecx
mov ecx, esi
shr ebx, cl
mov dword [esp + 0xec], ebx
mov ebp, eax
shr eax, cl
lea edi, [ecx - 0x20]
xchg edi, ebx
neg ebx
xchg edi, ebx
mov ecx, edi
shl ebp, cl
add edx, 0x20
neg edx
mov ecx, edx
mov ebx, dword [esp + 0xfc]
shr ebx, cl
cmp ecx, 0x20
sbb edx, edx
and ebx, edx
cmp edi, 0x20
sbb edx, edx
and ebp, edx
cmp esi, 0x20
sbb edx, edx
and eax, edx
mov esi, dword [esp + 0xec]
and esi, edx
or esi, ebp
or ebx, esi
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 1
mov byte [esp + 0x1d], 0
call fcn.00478d40
add esp, 0xf0
ret
mov edx, dword [esp + 0x104]
mov ebp, dword [edx]
mov ecx, ebp
mov edi, 1
shl edi, cl
lea esi, [ecx - 0x20]
mov ecx, esi
mov edx, 1
shl edx, cl
neg ecx
mov ebx, 1
shr ebx, cl
cmp esi, 0x20
sbb esi, esi
and esi, edx
cmp ecx, 0x20
sbb edx, edx
and ebx, edx
or ebx, esi
cmp eax, ebx
setne dl
cmp ebp, 0x20
sbb ebx, ebx
and ebx, edi
mov esi, dword [esp + 0xf8]
cmp esi, ebx
setne bl
or ebx, edx
test bl, bl
je 0x4781f8
mov ecx, dword [esp + 0x104]
mov ebx, dword [esp + 0x100]
jmp 0x478210
mov ecx, dword [esp + 0x104]
mov edx, dword [ecx + 8]
sub edx, ebp
inc edx
mov ebx, dword [esp + 0x100]
cmp ebx, edx
jne 0x478278
mov edx, esi
shl esi, 1
mov dword [esp + 0xec], esi
shl eax, 1
mov ebp, edx
shr edx, 0x1f
or edx, eax
mov dword [esp + 0xe8], edx
lea eax, [ebx - 1]
mov ebx, esi
add esi, 0xffffffff
mov edi, edx
adc edx, 0xffffffff
add ebx, 1
adc edi, 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x94], eax
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x98], ecx
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa4]
jmp 0x4782db
mov edx, esi
shl esi, 2
mov dword [esp + 0xec], esi
shl eax, 2
mov edi, edx
shr edi, 0x1e
or edi, eax
mov dword [esp + 0xe8], edi
lea eax, [ebx - 2]
mov ebx, esi
add esi, 0xffffffff
mov ebp, edi
adc ebp, 0xffffffff
add ebx, 2
adc edi, 0
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x94], eax
mov edx, ebp
mov ebp, dword [esp + 0xe8]
mov dword [esp + 0x98], ebp
mov ebp, dword [esp + 0xf8]
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x478519
mov dword [esp + 0x6c], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
neg eax
imul eax, eax, 0x13441
sar eax, 0x12
mov dword [esp + 0x24], eax
lea ebp, [eax + 1]
mov dword [esp + 0x30], ebp
lea eax, [0x57b578]
cmp ecx, eax
jne 0x4783b6
mov dword [esp], esi
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00479240
mov eax, dword [esp + 0xc]
mov dword [esp + 0x7c], eax
movzx ecx, byte [esp + 0x14]
mov byte [esp + 0x21], cl
mov edx, dword [esp + 0x94]
mov dword [esp], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x30]
mov dword [esp + 8], ebp
call fcn.00479240
mov eax, dword [esp + 0xc]
mov dword [esp + 0x88], eax
movzx ecx, byte [esp + 0x14]
mov byte [esp + 0x22], cl
mov edx, dword [esp + 0x28]
mov dword [esp], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], ebx
call fcn.00479240
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
movzx edx, byte [esp + 0x14]
xor ebx, ebx
mov ebp, dword [esp + 0x7c]
xor esi, esi
mov edi, dword [esp + 0x88]
xor ebx, ebx
mov dword [esp + 0x78], ebx
jmp 0x47848b
mov dword [esp], esi
mov dword [esp + 4], edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
call fcn.00479350
mov eax, dword [esp + 0x10]
mov dword [esp + 0x80], eax
movzx ecx, byte [esp + 0x1c]
mov byte [esp + 0x21], cl
mov edx, dword [esp + 0x14]
mov dword [esp + 0x84], edx
mov ebx, dword [esp + 0x94]
mov dword [esp], ebx
mov ebp, dword [esp + 0x98]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x30]
mov dword [esp + 0xc], edi
call fcn.00479350
mov eax, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
movzx ecx, byte [esp + 0x1c]
mov byte [esp + 0x22], cl
mov edx, dword [esp + 0x14]
mov dword [esp + 0x90], edx
mov ebx, dword [esp + 0x28]
mov dword [esp], ebx
mov ebp, dword [esp + 0x2c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], esi
call fcn.00479350
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
movzx edx, byte [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x84]
test ecx, ecx
jge 0x478d13
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0x30]
cmp edi, 0x37
jle 0x4784b3
xor edx, edx
xor edx, edx
mov byte [esp + 0x22], dl
xor edx, edx
mov byte [esp + 0x21], dl
xor edx, edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebx
mov esi, dword [esp + 0x24]
add esi, 0x19
cmp esi, 0x18
jae 0x47850d
mov byte [esp + 0x20], dl
xchg edi, ebx
neg ebx
xchg edi, ebx
mov dword [esp + 0x54], edi
mov esi, dword [esp + 0x4c]
test esi, esi
sete dl
mov ebx, dword [esp + 0x50]
test ebx, ebx
sete al
and eax, edx
test al, al
jne 0x478afa
mov eax, edi
jmp 0x478a48
movzx esi, byte [esp + 0x22]
movzx edi, byte [esp + 0x21]
jmp 0x47857b
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov byte [esp + 0x1c], 1
mov byte [esp + 0x1d], 0
call fcn.00478d40
add esp, 0xf0
ret
mov eax, dword [esp + 0xf4]
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
add esp, 0xf0
ret
mov byte [esp + 0x20], dl
xchg edi, eax
mov byte [esp + 0x21], al
xchg edi, eax
xchg esi, eax
mov byte [esp + 0x22], al
xchg esi, eax
neg ecx
mov dword [esp + 0xe4], ecx
mov edi, 1
shl edi, cl
shr ebp, cl
shr ebx, cl
mov dword [esp + 0xec], ebx
mov esi, dword [esp + 0x90]
shr esi, cl
mov dword [esp + 0xe8], esi
mov edx, dword [esp + 0x8c]
shr edx, cl
mov dword [esp + 0xe0], edx
lea esi, [ecx - 0x20]
xchg esi, ebx
neg ebx
xchg esi, ebx
mov ecx, esi
mov ebx, 1
shr ebx, cl
mov dword [esp + 0xdc], ebx
mov ebx, dword [esp + 0x84]
shl ebx, cl
mov dword [esp + 0xd8], ebx
mov ebx, dword [esp + 0x90]
shl ebx, cl
mov dword [esp + 0xd4], ebx
mov ebx, dword [esp + 0x70]
add ebx, 0x20
neg ebx
mov dword [esp + 0xd0], ebx
mov ecx, ebx
mov edx, 1
shl edx, cl
mov dword [esp + 0xcc], edx
mov edx, dword [esp + 0x84]
shr edx, cl
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0x90]
shr edx, cl
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x78]
shr edx, cl
mov dword [esp + 0xc0], edx
mov ecx, esi
mov edx, dword [esp + 0x78]
shl edx, cl
mov dword [esp + 0xbc], edx
mov ecx, dword [esp + 0xe4]
shr eax, cl
mov ebx, dword [esp + 0x78]
shr ebx, cl
cmp ecx, 0x20
sbb ecx, ecx
and edi, ecx
and ebp, ecx
mov edx, dword [esp + 0xe0]
and edx, ecx
and eax, ecx
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xec]
and eax, ecx
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0xe8]
and eax, ecx
mov dword [esp + 0xe8], eax
and ebx, ecx
mov dword [esp + 0xb8], ebx
mov ecx, edi
add edi, 0xffffffff
mov dword [esp + 0x68], edi
mov eax, dword [esp + 0x8c]
and eax, edi
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x74]
and eax, edi
mov dword [esp + 0x5c], eax
cmp esi, 0x20
sbb esi, esi
mov edi, dword [esp + 0xdc]
and edi, esi
mov ebx, dword [esp + 0xd8]
and ebx, esi
or ebp, ebx
mov ebx, dword [esp + 0xd4]
and ebx, esi
or edx, ebx
mov ebx, dword [esp + 0xbc]
and ebx, esi
mov esi, dword [esp + 0xe0]
or esi, ebx
mov ebx, dword [esp + 0xd0]
cmp ebx, 0x20
sbb ebx, ebx
mov eax, dword [esp + 0xcc]
and eax, ebx
or edi, eax
add ecx, 0xffffffff
adc edi, 0xffffffff
mov dword [esp + 0xb4], edi
mov eax, dword [esp + 0xc8]
and eax, ebx
mov ecx, esi
mov esi, dword [esp + 0xc4]
and esi, ebx
mov edi, dword [esp + 0xc0]
and edi, ebx
or eax, ebp
mov dword [esp + 0xe0], eax
or esi, edx
mov dword [esp + 0x8c], esi
mov edx, dword [esp + 0x90]
mov ebx, dword [esp + 0xb4]
and edx, ebx
mov dword [esp + 0x64], edx
or edi, ecx
mov ebp, dword [esp + 0x78]
and ebp, ebx
mov ecx, eax
movzx eax, byte [esp + 0x20]
test al, al
je 0x4787b6
test ebp, ebp
seta cl
xchg esi, ebx
sete bl
xchg esi, ebx
mov ebx, dword [esp + 0x5c]
test ebx, ebx
seta dl
and esi, edx
or esi, ecx
test al, al
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0xb4]
mov eax, esi
mov esi, dword [esp + 0x8c]
jmp 0x4787bb
mov eax, 1
je 0x4787f7
mov esi, dword [esp + 0x5c]
test esi, esi
xchg esi, ebx
sete bl
xchg esi, ebx
test ebp, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
and esi, ebp
xchg esi, eax
test al, al
xchg esi, eax
je 0x4787f0
mov ebp, dword [esp + 0xf8]
test ebp, 1
sete al
and eax, 1
jmp 0x4787fe
mov esi, dword [esp + 0x8c]
mov ebp, dword [esp + 0xf8]
test al, al
je 0x47880b
mov eax, dword [esp + 0xb8]
jmp 0x478818
add edi, 0xffffffff
mov eax, dword [esp + 0xb8]
adc eax, 0xffffffff
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edi
movzx esi, byte [esp + 0x22]
xchg esi, eax
test al, al
xchg esi, eax
je 0x4788c9
mov eax, dword [esp + 0x70]
inc eax
neg eax
mov ecx, eax
mov edi, 1
shl edi, cl
lea ebp, [eax - 0x20]
mov ecx, ebp
mov esi, 1
shl esi, cl
neg ecx
mov ebx, 1
shr ebx, cl
cmp eax, 0x20
sbb eax, eax
and edi, eax
mov eax, dword [esp + 0x60]
cmp edi, eax
setb al
cmp ebp, 0x20
sbb ebp, ebp
and esi, ebp
cmp ecx, 0x20
sbb ebp, ebp
and ebx, ebp
or esi, ebx
cmp esi, edx
sete bl
xchg ebp, ebx
setb bl
xchg ebp, ebx
and eax, ebx
or eax, ebp
test al, al
je 0x47889d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x8c]
mov ebx, 1
jmp 0x478932
mov eax, dword [esp + 0x60]
cmp edi, eax
sete cl
and ecx, ebx
test cl, cl
je 0x4788be
mov ecx, dword [esp + 0x8c]
test ecx, 1
setne bl
jmp 0x478932
mov ecx, dword [esp + 0x8c]
xor ebx, ebx
jmp 0x478932
mov eax, dword [esp + 0x70]
inc eax
neg eax
mov ecx, eax
mov edi, dword [esp + 0x60]
shr edi, cl
shr edx, cl
mov dword [esp + 0xdc], edx
lea ebp, [eax - 0x20]
mov ecx, ebp
mov esi, dword [esp + 0x64]
shr esi, cl
neg ecx
mov edx, dword [esp + 0x64]
shl edx, cl
cmp eax, 0x20
sbb eax, eax
and edi, eax
cmp ecx, 0x20
sbb ecx, ecx
and edx, ecx
or edx, edi
cmp ebp, 0x20
sbb ebp, ebp
and esi, ebp
or esi, edx
mov edx, dword [esp + 0xdc]
test eax, edx
sete al
cmp esi, 1
sete dl
and edx, eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x8c]
mov ebx, edx
mov edx, dword [esp + 0x64]
movzx ebp, byte [esp + 0x21]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4789a6
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x68]
test esi, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0xb4]
test edi, esi
xchg esi, ebx
sete bl
xchg esi, ebx
and ebp, esi
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4789a6
mov ebp, dword [esp + 0xf8]
test ebp, 1
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebp, 1
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4789a6
movzx ebp, byte [esp + 0x22]
xchg ebp, eax
test al, al
xchg ebp, eax
mov esi, dword [esp + 0xec]
mov ebp, dword [esp + 0xe0]
jmp 0x4789c3
mov ebp, dword [esp + 0xe0]
add ebp, 1
mov esi, dword [esp + 0xec]
adc esi, 0
movzx edi, byte [esp + 0x22]
xchg edi, eax
test al, al
xchg edi, eax
je 0x4789d3
test edx, edx
sete dl
test eax, eax
sete al
and eax, edx
jmp 0x4789d5
xor eax, eax
mov edx, dword [esp + 0xf4]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], bl
call fcn.00478d40
mov eax, dword [esp + 0xf4]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x24]
sub ecx, edx
dec ecx
mov dword [eax + 0x10], ecx
add esp, 0xf0
ret
mov edx, dword [esp + 0x58]
lea edi, [edx - 1]
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x80]
mov ebx, esi
mov esi, ecx
mov ecx, dword [esp + 0x70]
test edi, edi
jle 0x478af8
mov dword [esp + 0x58], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], esi
mov eax, esi
mov ebp, 0xcccccccd
mul ebp
mov dword [esp + 0xec], edx
mov eax, ebp
mul ebx
shr edx, 2
mov dword [esp + 0xe8], edx
lea eax, [edx + edx*4]
sub ebx, eax
mov eax, 0x33333333
mul ebx
mov edi, dword [esp + 0xec]
shr edi, 2
lea ecx, [edi + edi*4]
sub esi, ecx
add ebx, esi
mov ecx, eax
mov eax, ebp
mov esi, edx
mul ebx
shr edx, 2
add edi, 0
mov ebx, dword [esp + 0xe8]
adc ebx, 0
add ecx, edi
adc esi, ebx
add ecx, edx
adc esi, 0
mov eax, ecx
mov edx, 5
mul edx
lea ebx, [esi + esi*4]
add edx, ebx
mov ebx, dword [esp + 0x3c]
cmp eax, ebx
setne bl
mov edi, dword [esp + 0x48]
cmp edi, edx
setne dl
or ebx, edx
test bl, bl
je 0x478a2e
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x54]
movzx eax, byte [esp + 0x21]
jmp 0x478aff
mov edi, eax
mov eax, 1
mov byte [esp + 0x21], al
mov edx, dword [esp + 0x98]
test edx, edx
sete bl
mov esi, dword [esp + 0x94]
test esi, esi
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebp, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x478bf5
mov ebx, edi
jmp 0x478b41
dec edi
movzx eax, byte [esp + 0x21]
mov ebx, dword [esp + 0x54]
mov edx, esi
mov esi, ecx
mov ecx, dword [esp + 0x70]
test edi, edi
jle 0x478bf3
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], esi
mov eax, 0xcccccccd
mul esi
mov dword [esp + 0xec], edx
mov eax, 0xcccccccd
mov ebp, dword [esp + 0x44]
mul ebp
shr edx, 2
mov dword [esp + 0xe8], edx
lea eax, [edx + edx*4]
sub ebp, eax
mov eax, 0x33333333
mul ebp
mov ebx, dword [esp + 0xec]
shr ebx, 2
lea ecx, [ebx + ebx*4]
sub esi, ecx
add ebp, esi
mov ecx, eax
mov eax, 0xcccccccd
mov esi, edx
mul ebp
shr edx, 2
add ebx, 0
mov ebp, dword [esp + 0xe8]
adc ebp, 0
add ecx, ebx
adc esi, ebp
add ecx, edx
adc esi, 0
mov eax, ecx
mov edx, 5
mul edx
lea ebx, [esi + esi*4]
add edx, ebx
mov ebx, dword [esp + 0x38]
cmp eax, ebx
setne bl
mov ebp, dword [esp + 0x44]
cmp ebp, edx
setne dl
or ebx, edx
test bl, bl
je 0x478b2f
movzx eax, byte [esp + 0x21]
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x54]
movzx edx, byte [esp + 0x22]
jmp 0x478bfa
mov edi, ebx
mov edx, 1
mov ebx, dword [esp + 0x2c]
test ebx, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov esi, dword [esp + 0x28]
test esi, esi
sete cl
and ebp, ecx
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x478c1e
mov byte [esp + 0x23], dl
jmp 0x478c54
mov ecx, 1
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
mov esi, edx
movzx edi, byte [esp + 0x21]
mov edx, ecx
mov ecx, dword [esp + 0x70]
jmp 0x47857b
lea edi, [ecx - 1]
movzx eax, byte [esp + 0x21]
movzx edx, byte [esp + 0x23]
test edi, edi
jle 0x478c1e
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], esi
mov eax, 0xcccccccd
mul ebx
mov dword [esp + 0xec], edx
mov eax, esi
mov ebp, 0xcccccccd
mul ebp
shr edx, 2
mov dword [esp + 0xe8], edx
lea eax, [edx + edx*4]
sub esi, eax
mov eax, edi
mov edi, dword [esp + 0xec]
shr edi, 2
lea ecx, [edi + edi*4]
sub ebx, ecx
mov ecx, eax
mov eax, 0x33333333
mul ebx
mov dword [esp + 0xec], edx
add ebx, esi
mov esi, eax
mov eax, ebp
mul ebx
shr edx, 2
mov eax, dword [esp + 0xe8]
add eax, 0
adc edi, 0
add eax, esi
mov ebx, dword [esp + 0xec]
adc ebx, edi
add eax, edx
adc ebx, 0
mov edx, 5
mov esi, eax
mul edx
lea edi, [ebx + ebx*4]
add edx, edi
mov edi, dword [esp + 0x40]
cmp edi, edx
setne dl
mov edi, dword [esp + 0x34]
cmp eax, edi
xchg edi, ebx
setne bl
xchg edi, ebx
or edi, edx
xchg edi, eax
test al, al
xchg edi, eax
je 0x478c47
movzx eax, byte [esp + 0x21]
movzx edx, byte [esp + 0x23]
movzx ecx, byte [esp + 0x20]
jmp 0x478c23
lea eax, [0x4c5340]
mov dword [esp], eax
lea eax, [0x500c28]
mov dword [esp + 4], eax
call fcn.00437c40
nop
call fcn.004662a0
jmp fcn.00478080