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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xc4
mov ebx, dword [esp + 0xd8]
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
cmp ebx, 9
jbe 0x4073cf
mov eax, ecx
movzx ecx, word [ecx]
movzx edx, word [eax + 4]
movzx esi, word [eax + 2]
mov dword [esp], edx
lea ebp, [ecx + esi]
mov edx, 0xfffffffa
sub edx, ebp
sub edx, dword [esp]
lea ebp, [edx + ebx]
mov edx, dword [esp + 0xdc]
mov edx, dword [edx]
mov dword [esp + 0x10], edx
cmp ebx, ebp
jae 0x4073e0
mov eax, 0xffffffec
add esp, 0xc4
pop ebx
pop esi
pop edi
pop ebp
ret
test ecx, ecx
je 0x407860
lea edx, [eax + 0xa]
lea ebx, [eax + 6]
mov dword [esp + 0x38], edx
mov dword [esp + 0x84], edx
movzx edx, byte [eax + ecx + 5]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x80], ebx
cmp ecx, 3
ja 0x407828
mov dword [esp + 0x7c], ebx
movzx ebx, byte [eax + 6]
mov dword [esp + 0x74], ebx
cmp cx, 2
je 0x407433
cmp cx, 3
jne 0x407440
movzx edi, byte [eax + 8]
shl edi, 0x10
add ebx, edi
movzx eax, byte [eax + 7]
shl eax, 8
add eax, ebx
mov dword [esp + 0x74], eax
test dl, dl
je 0x4073cf
mov eax, 5
bsr edx, edx
sub eax, ecx
shl eax, 3
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
lea ebx, [eax + ecx]
mov eax, dword [esp + 8]
mov ecx, esi
mov edx, ebx
mov dword [esp + 0x78], eax
lea eax, [esp + 0x88]
call fcn.00401b20
cmp eax, 0xffffff88
ja 0x4073d4
mov edi, dword [esp]
add ebx, esi
lea eax, [esp + 0x9c]
mov edx, ebx
mov ecx, edi
call fcn.00401b20
cmp eax, 0xffffff88
ja 0x4073d4
add edi, ebx
mov ecx, ebp
lea eax, [esp + 0xb0]
mov edx, edi
call fcn.00401b20
cmp eax, 0xffffff88
ja 0x4073d4
mov ebx, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov eax, ebx
add eax, edx
lea esi, [eax - 3]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x4c], esi
lea edi, [eax + 4]
lea eax, [edx + 3]
shr eax, 2
lea ebp, [ebx + eax]
mov edx, eax
lea ecx, [ebp + eax]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], ebp
add edx, ecx
mov dword [esp + 0x64], ecx
shr eax, 0x10
mov dword [esp + 0x6c], edx
movzx eax, al
mov dword [esp + 0x60], eax
cmp esi, edx
jbe 0x408030
mov eax, dword [esp + 0xb0]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x10], ebx
mov ebx, edi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xac]
mov byte [esp + 0x5f], 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xb8]
mov byte [esp + 0x5e], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc0]
mov byte [esp + 0x5c], 0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov byte [esp + 0x5d], 0
neg eax
mov dword [esp + 0x40], ebp
mov ebp, esi
and eax, 0x1f
mov dword [esp], eax
jmp 0x407690
mov esi, dword [esp + 8]
mov byte [esp + 0x5f], 1
mov edx, esi
and esi, 7
shr edx, 3
mov dword [esp + 8], esi
sub ecx, edx
xor edx, edx
mov edi, dword [ecx]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x54]
cmp esi, edi
jb 0x408008
mov edi, dword [esp + 0x10]
mov byte [esp + 0x5e], 1
mov ecx, edi
shr ecx, 3
sub esi, ecx
mov ecx, edi
mov edi, dword [esi]
and ecx, 7
mov dword [esp + 0x48], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], edi
mov esi, dword [esp + 0x44]
cmp dword [esp + 0x50], esi
ja 0x407870
mov ecx, ebp
and ebp, 7
shr ecx, 3
sub esi, ecx
mov edi, dword [esi]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x34], edi
cmp dword [esp + 0x58], esi
ja 0x408062
mov ecx, eax
and eax, 7
mov edi, dword [esp + 0x20]
shr ecx, 3
sub dword [esp + 0x14], ecx
mov esi, dword [esp + 0x14]
test edx, edx
mov dword [esp + 0x30], eax
sete dl
cmp dword [esp + 0x4c], edi
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
seta al
and dl, al
mov byte [esp + 0x5c], dl
je 0x40816b
mov byte [esp + 0x5d], dl
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x24]
mov ecx, edi
shl eax, cl
movzx ecx, byte [esp]
shr eax, cl
mov ecx, dword [esp + 4]
lea eax, [ebx + eax*4]
movzx edx, word [eax]
mov word [ecx], dx
movzx edx, byte [eax + 2]
movzx esi, byte [eax + 3]
mov eax, dword [esp + 0x28]
add edx, edi
mov edi, dword [esp + 0x10]
add esi, ecx
mov dword [esp + 4], edx
mov ecx, edi
shl eax, cl
movzx ecx, byte [esp]
shr eax, cl
mov ecx, dword [esp + 0x40]
lea eax, [ebx + eax*4]
movzx edx, word [eax]
mov word [ecx], dx
movzx edx, byte [eax + 2]
add edx, edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
movzx edx, byte [eax + 3]
mov eax, dword [esp + 0x34]
add edx, ecx
mov ecx, ebp
shl eax, cl
movzx ecx, byte [esp]
shr eax, cl
lea ecx, [ebx + eax*4]
movzx eax, word [ecx]
mov word [edi], ax
movzx eax, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
add eax, ebp
mov ebp, dword [esp + 0x2c]
add ecx, edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
movzx ecx, byte [esp + 0x30]
shl ebp, cl
movzx ecx, byte [esp]
shr ebp, cl
lea ecx, [ebx + ebp*4]
movzx ebp, word [ecx]
mov word [edi], bp
movzx ebp, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
add ebp, dword [esp + 0x30]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x24]
add ecx, edi
mov edi, dword [esp + 4]
mov dword [esp + 0x30], ecx
mov ecx, edi
shl ebp, cl
movzx ecx, byte [esp]
shr ebp, cl
lea ecx, [ebx + ebp*4]
movzx ebp, word [ecx]
mov word [esi], bp
movzx ebp, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
add ebp, edi
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x10]
lea edi, [esi + ecx]
mov esi, dword [esp + 0x28]
mov dword [esp + 4], edi
mov ecx, ebp
shl esi, cl
movzx ecx, byte [esp]
shr esi, cl
lea ecx, [ebx + esi*4]
movzx esi, word [ecx]
mov word [edx], si
movzx esi, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
mov edi, esi
mov esi, dword [esp + 0x3c]
add edi, ebp
mov dword [esp + 0x10], edi
lea edi, [edx + ecx]
mov edx, dword [esp + 0x34]
mov ecx, eax
mov dword [esp + 0x40], edi
mov edi, dword [esp]
shl edx, cl
mov ecx, edi
shr edx, cl
lea edx, [ebx + edx*4]
movzx ecx, word [edx]
mov word [esi], cx
movzx ecx, byte [edx + 2]
lea ebp, [ecx + eax]
movzx eax, byte [edx + 3]
add eax, esi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov ecx, esi
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0x30]
lea edx, [ebx + eax*4]
movzx eax, word [edx]
mov word [ecx], ax
movzx eax, byte [edx + 2]
movzx edx, byte [edx + 3]
add eax, esi
add edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
cmp dword [esp + 0x38], ecx
jbe 0x4075d0
mov edx, 3
jmp 0x4075f3
lea eax, [ebx + ecx - 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x7c], eax
mov eax, dword [eax]
mov dword [esp + 0x74], eax
mov eax, 0xffffffff
test dl, dl
je 0x4073d4
bsr edx, edx
mov eax, 8
sub eax, edx
mov dword [esp + 8], eax
mov eax, ebx
jmp 0x40745f
mov eax, 0xffffffb8
jmp 0x4073d4
mov edi, ebx
mov esi, ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x58], ecx
jbe 0x408078
mov edx, dword [esp + 8]
cmp byte [esp + 0x5d], 0
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x78], edx
mov dword [esp + 0xb4], eax
je 0x4078b9
mov eax, dword [esp + 0x14]
mov dword [esp + 0xb8], eax
cmp byte [esp + 0x5c], 0
je 0x4078cb
mov eax, dword [esp + 0x44]
mov dword [esp + 0xa4], eax
cmp byte [esp + 0x5e], 0
je 0x4078dd
mov eax, dword [esp + 0x48]
mov dword [esp + 0x90], eax
cmp byte [esp + 0x5f], 0
je 0x4078f4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], eax
cmp byte [esp + 0x5e], 0
je 0x407906
mov eax, dword [esp + 0x28]
mov dword [esp + 0x88], eax
cmp byte [esp + 0x5c], 0
je 0x407918
mov eax, dword [esp + 0x34]
mov dword [esp + 0x9c], eax
cmp byte [esp + 0x5d], 0
je 0x40792a
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 4]
cmp dword [esp + 0x64], ebp
setb al
cmp esi, ebx
setb dl
or al, dl
jne 0x4073cf
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x6c], edx
jb 0x4073cf
lea eax, [esi - 3]
mov dword [esp + 4], ebp
mov dword [esp], eax
mov eax, dword [esp + 0x60]
neg eax
and eax, 0x1f
mov esi, eax
jmp 0x4079be
cmp ebx, dword [esp]
jae 0x4079cb
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, ebp
mov edx, eax
shl edx, cl
mov ecx, esi
shr edx, cl
lea ecx, [edi + edx*4]
movzx edx, word [ecx]
mov word [ebx], dx
movzx edx, byte [ecx + 2]
add edx, ebp
movzx ebp, byte [ecx + 3]
mov ecx, edx
shl eax, cl
mov ecx, esi
add ebp, ebx
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, word [eax]
mov word [ebp], cx
movzx ecx, byte [eax + 2]
movzx ebx, byte [eax + 3]
add ecx, edx
mov dword [esp + 0x78], ecx
add ebx, ebp
lea eax, [esp + 0x74]
call fcn.004016a0
test eax, eax
je 0x407970
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 4]
mov edx, ebx
lea esi, [eax - 2]
mov eax, dword [esp + 0x60]
mov dword [esp], ebp
mov ebp, edx
neg eax
and eax, 0x1f
mov ebx, eax
jmp 0x407a22
cmp ebp, esi
ja 0x408024
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, word [eax]
mov word [ebp], cx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
add ecx, edx
mov dword [esp + 0x78], ecx
add ebp, eax
lea eax, [esp + 0x74]
call fcn.004016a0
test eax, eax
je 0x4079f0
mov eax, ebp
mov dword [esp + 4], ebp
mov ebp, dword [esp]
cmp eax, esi
ja 0x407a88
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov ebx, dword [esp + 0x60]
neg ebx
and ebx, 0x1f
lea esi, [esi]
mov ebp, dword [esp]
mov ecx, edx
shl ebp, cl
mov ecx, ebx
shr ebp, cl
lea ecx, [edi + ebp*4]
movzx ebp, word [ecx]
mov word [eax], bp
movzx ebp, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
add edx, ebp
add eax, ecx
cmp eax, esi
jbe 0x407a58
mov ebp, dword [esp + 4]
mov dword [esp + 0x78], edx
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
cmp dword [esp + 0x68], ebx
jbe 0x407ad1
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, edx
shl eax, cl
mov ecx, dword [esp + 0x60]
neg ecx
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, byte [eax]
mov byte [ebx], cl
cmp byte [eax + 3], 1
je 0x40814a
cmp edx, 0x1f
ja 0x407ad1
movzx eax, byte [eax + 2]
add eax, edx
mov edx, 0x20
cmp eax, edx
cmova eax, edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
sub eax, 3
neg ebx
mov dword [esp], eax
and ebx, 0x1f
jmp 0x407b47
cmp ebp, dword [esp]
jae 0x407b57
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov ecx, esi
mov edx, eax
shl edx, cl
mov ecx, ebx
shr edx, cl
lea ecx, [edi + edx*4]
movzx edx, word [ecx]
mov word [ebp], dx
movzx edx, byte [ecx + 2]
add edx, esi
movzx esi, byte [ecx + 3]
mov ecx, edx
shl eax, cl
mov ecx, ebx
add esi, ebp
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, word [eax]
mov word [esi], cx
movzx ecx, byte [eax + 2]
movzx ebp, byte [eax + 3]
add edx, ecx
mov dword [esp + 0x8c], edx
add ebp, esi
lea eax, [esp + 0x88]
call fcn.004016a0
test eax, eax
je 0x407af0
mov eax, dword [esp + 0x64]
lea esi, [eax - 2]
mov eax, dword [esp + 0x60]
neg eax
and eax, 0x1f
mov ebx, eax
jmp 0x407bab
cmp ebp, esi
ja 0x407c0c
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov ecx, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, word [eax]
mov word [ebp], cx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
add edx, ecx
mov dword [esp + 0x8c], edx
add ebp, eax
lea eax, [esp + 0x88]
call fcn.004016a0
test eax, eax
je 0x407b70
cmp ebp, esi
ja 0x407c0c
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x8c]
mov dword [esp], eax
neg ebx
and ebx, 0x1f
lea esi, [esi]
mov eax, dword [esp]
mov ecx, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, word [eax]
mov word [ebp], cx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
add edx, ecx
add ebp, eax
cmp ebp, esi
jbe 0x407be0
mov dword [esp + 0x8c], edx
cmp dword [esp + 0x64], ebp
jbe 0x407c5b
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov ecx, edx
shl eax, cl
mov ecx, dword [esp + 0x60]
neg ecx
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, byte [eax]
mov byte [ebp], cl
cmp byte [eax + 3], 1
je 0x408159
cmp edx, 0x1f
ja 0x407c5b
movzx eax, byte [eax + 2]
add eax, edx
mov edx, 0x20
cmp eax, edx
cmova eax, edx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x3c]
lea ebp, [eax - 3]
neg ebx
mov dword [esp], ebp
and ebx, 0x1f
jmp 0x407ccf
cmp esi, dword [esp]
jae 0x407cdf
mov ebp, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
mov ecx, ebp
mov edx, eax
shl edx, cl
mov ecx, ebx
shr edx, cl
lea ecx, [edi + edx*4]
movzx edx, word [ecx]
mov word [esi], dx
movzx edx, byte [ecx + 2]
add edx, ebp
movzx ebp, byte [ecx + 3]
mov ecx, edx
shl eax, cl
mov ecx, ebx
add ebp, esi
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, word [eax]
mov word [ebp], cx
movzx ecx, byte [eax + 2]
movzx esi, byte [eax + 3]
add edx, ecx
mov dword [esp + 0xa0], edx
add esi, ebp
lea eax, [esp + 0x9c]
call fcn.004016a0
test eax, eax
je 0x407c78
mov eax, dword [esp + 0x6c]
lea ebp, [eax - 2]
mov eax, dword [esp + 0x60]
neg eax
and eax, 0x1f
mov ebx, eax
jmp 0x407d32
cmp esi, ebp
ja 0x408012
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
mov ecx, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, word [eax]
mov word [esi], cx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
add edx, ecx
mov dword [esp + 0xa0], edx
add esi, eax
lea eax, [esp + 0x9c]
call fcn.004016a0
test eax, eax
je 0x407cf8
mov dword [esp + 0x3c], esi
mov eax, esi
cmp esi, ebp
ja 0x407da0
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
neg ebx
and ebx, 0x1f
mov dword [esp], ebx
mov ebx, esi
lea esi, [esi]
nop
mov ecx, edx
mov esi, ebx
shl esi, cl
movzx ecx, byte [esp]
shr esi, cl
lea ecx, [edi + esi*4]
movzx esi, word [ecx]
mov word [eax], si
movzx esi, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
add edx, esi
add eax, ecx
cmp eax, ebp
jbe 0x407d70
mov dword [esp + 0x3c], eax
mov dword [esp + 0xa0], edx
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x6c], ebx
jbe 0x407df2
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
mov ecx, edx
shl eax, cl
mov ecx, dword [esp + 0x60]
neg ecx
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, byte [eax]
mov byte [ebx], cl
cmp byte [eax + 3], 1
je 0x408138
cmp edx, 0x1f
ja 0x407df2
movzx eax, byte [eax + 2]
add eax, edx
mov edx, 0x20
cmp eax, edx
cmova eax, edx
mov dword [esp + 0xa0], eax
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x20]
neg ebx
and ebx, 0x1f
jmp 0x407e60
cmp dword [esp + 0x4c], esi
jbe 0x407e70
mov ebp, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
mov ecx, ebp
mov edx, eax
shl edx, cl
mov ecx, ebx
shr edx, cl
lea ecx, [edi + edx*4]
movzx edx, word [ecx]
mov word [esi], dx
movzx edx, byte [ecx + 2]
add edx, ebp
movzx ebp, byte [ecx + 3]
mov ecx, edx
shl eax, cl
mov ecx, ebx
add ebp, esi
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, word [eax]
mov word [ebp], cx
movzx ecx, byte [eax + 2]
movzx esi, byte [eax + 3]
add edx, ecx
mov dword [esp + 0xb4], edx
add esi, ebp
lea eax, [esp + 0xb0]
call fcn.004016a0
test eax, eax
je 0x407e08
mov eax, dword [esp + 0x70]
mov ebp, esi
lea ebx, [eax - 2]
mov eax, dword [esp + 0x60]
neg eax
and eax, 0x1f
mov esi, eax
jmp 0x407ecb
cmp ebp, ebx
ja 0x40801b
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
mov ecx, edx
shl eax, cl
mov ecx, esi
shr eax, cl
lea eax, [edi + eax*4]
movzx ecx, word [eax]
mov word [ebp], cx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
add edx, ecx
mov dword [esp + 0xb4], edx
add ebp, eax
lea eax, [esp + 0xb0]
call fcn.004016a0
test eax, eax
je 0x407e90
mov dword [esp + 0x20], ebp
mov eax, ebp
cmp ebp, ebx
ja 0x407f38
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
neg esi
and esi, 0x1f
mov dword [esp], esi
mov esi, ebp
lea esi, [esi]
mov ecx, edx
mov ebp, esi
shl ebp, cl
movzx ecx, byte [esp]
shr ebp, cl
lea ecx, [edi + ebp*4]
movzx ebp, word [ecx]
mov word [eax], bp
movzx ebp, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
add edx, ebp
add eax, ecx
cmp eax, ebx
jbe 0x407f08
mov dword [esp + 0x20], eax
mov dword [esp + 0xb4], edx
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x70], ebx
jbe 0x407f8a
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
mov ecx, edx
shl eax, cl
mov ecx, dword [esp + 0x60]
neg ecx
shr eax, cl
lea ecx, [edi + eax*4]
movzx eax, byte [ecx]
mov byte [ebx], al
cmp byte [ecx + 3], 1
je 0x408126
cmp edx, 0x1f
ja 0x407f8a
movzx eax, byte [ecx + 2]
add eax, edx
mov edx, 0x20
cmp eax, edx
cmova eax, edx
mov dword [esp + 0xb4], eax
mov edi, dword [esp + 0x18]
xor eax, eax
cmp edi, dword [esp + 0x7c]
je 0x408053
mov edi, dword [esp + 0x94]
cmp dword [esp + 0x90], edi
je 0x408041
xor eax, eax
mov edi, dword [esp + 0xa8]
cmp dword [esp + 0xa4], edi
jne 0x4073cf
cmp dword [esp + 0xa0], 0x20
jne 0x4073cf
mov edi, dword [esp + 0xbc]
cmp dword [esp + 0xb8], edi
jne 0x4073cf
cmp dword [esp + 0xb4], 0x20
jne 0x4073cf
test eax, eax
je 0x4073cf
mov eax, dword [esp + 0xc]
jmp 0x4073d4
mov edx, 3
jmp 0x407626
mov dword [esp + 0x3c], esi
jmp 0x407da0
mov dword [esp + 0x20], ebp
jmp 0x407f38
mov dword [esp + 4], ebp
mov ebp, dword [esp]
jmp 0x407a88
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], eax
jmp 0x40792a
xor edx, edx
cmp dword [esp + 0x8c], 0x20
cmovne eax, edx
jmp 0x407fb0
xor eax, eax
cmp dword [esp + 0x78], 0x20
sete al
jmp 0x407f9a
mov edi, ebx
mov esi, ebp
mov byte [esp + 0x5c], 1
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x40]
jmp 0x40788a
mov edx, eax
and eax, 7
shr edx, 3
sub dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 8]
cmp byte [esp + 0x5c], 0
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xb8], eax
je 0x4080d0
mov eax, dword [esp + 0x44]
mov dword [esp + 0xa4], eax
cmp byte [esp + 0x5e], 0
je 0x4080e2
mov eax, dword [esp + 0x48]
mov dword [esp + 0x90], eax
cmp byte [esp + 0x5f], 0
je 0x4080f9
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], eax
cmp byte [esp + 0x5e], 0
je 0x40810b
mov eax, dword [esp + 0x28]
mov dword [esp + 0x88], eax
cmp byte [esp + 0x5c], 0
je 0x40791f
mov eax, dword [esp + 0x34]
mov dword [esp + 0x9c], eax
jmp 0x40791f
movzx eax, byte [ecx + 2]
add eax, edx
mov dword [esp + 0xb4], eax
jmp 0x407f8a
movzx eax, byte [eax + 2]
add eax, edx
mov dword [esp + 0xa0], eax
jmp 0x407df2
movzx eax, byte [eax + 2]
add eax, edx
mov dword [esp + 0x78], eax
jmp 0x407ad1
movzx eax, byte [eax + 2]
add eax, edx
mov dword [esp + 0x8c], eax
jmp 0x407c5b
mov edi, ebx
mov esi, ebp
mov byte [esp + 0x5c], 1
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x40]
jmp 0x408092