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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xb0
mov ebx, edx
mov eax, dword [esp + 0xc8]
mov edx, dword [section..data]
xor edx, esp
mov dword [esp + 0xac], edx
mov ebp, 0xffffffec
cmp eax, 0xa
jb 0x4054fc
mov dword [esp + 0x40], ecx
mov edi, dword [esp + 0xc4]
movzx ecx, word [edi]
movzx esi, word [edi + 2]
movzx ebp, word [edi + 4]
mov edx, esi
add esi, ecx
add esi, 6
add esi, ebp
sub eax, esi
jae 0x40535d
mov ebp, 0xffffffec
jmp 0x4054fc
mov dword [esp + 4], ebp
mov ebp, 0xffffffb8
test ecx, ecx
je 0x4054fc
mov esi, dword [esp + 0xcc]
mov dword [esp + 0xc], esi
movzx esi, word [esi + 2]
mov dword [esp + 0x1c], esi
cmp cx, 4
jb 0x4053b1
movzx esi, byte [edi + ecx + 5]
test esi, esi
je 0x4054f7
mov dword [esp + 0x58], ebx
lea ebx, [ecx + 2]
mov dword [esp + 0x24], ebx
mov edi, dword [edi + ecx + 2]
mov dword [esp], edi
bsr ebx, esi
xor ebx, 0x1f
add ebx, 0xffffffe9
jmp 0x405418
movzx esi, byte [edi + 6]
mov dword [esp], esi
cmp ecx, 2
je 0x4053d0
cmp ecx, 3
jne 0x4053ed
movzx esi, byte [edi + 8]
shl esi, 0x10
mov edi, dword [esp]
or edi, esi
jmp 0x4053d3
mov edi, dword [esp]
mov esi, dword [esp + 0xc4]
movzx esi, byte [esi + 7]
shl esi, 8
add edi, esi
mov dword [esp], edi
mov edi, dword [esp + 0xc4]
movzx esi, byte [edi + ecx + 5]
test esi, esi
je 0x405353
mov dword [esp + 0x58], ebx
bsr ebx, esi
xor ebx, 0x1f
lea esi, [ecx*8]
sub ebx, esi
add ebx, 9
mov dword [esp + 0x24], 6
test edx, edx
je 0x4054fc
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0xc4]
lea edi, [esi + ecx]
add edi, 6
cmp dx, 4
mov ebx, edx
jb 0x405464
movzx ecx, byte [ebx + edi - 1]
test ecx, ecx
je 0x4054f7
lea esi, [ebx - 4]
mov dword [esp + 0x48], esi
mov esi, dword [edi + ebx - 4]
mov dword [esp + 0x20], esi
bsr ecx, ecx
xor ecx, 0x1f
add ecx, 0xffffffe9
mov dword [esp + 8], ecx
jmp 0x4054c0
movzx ecx, byte [edi]
mov dword [esp + 0x20], ecx
cmp ebx, 2
je 0x405484
cmp ebx, 3
jne 0x405495
movzx ecx, byte [edi + 2]
shl ecx, 0x10
mov esi, dword [esp + 0x20]
or esi, ecx
jmp 0x405488
mov esi, dword [esp + 0x20]
movzx ecx, byte [edi + 1]
shl ecx, 8
add esi, ecx
mov dword [esp + 0x20], esi
movzx ecx, byte [ebx + edi - 1]
test ecx, ecx
je 0x405353
bsr esi, ecx
xor esi, 0x1f
lea ecx, [ebx*8]
sub esi, ecx
add esi, 9
mov dword [esp + 8], esi
mov dword [esp + 0x48], 0
mov edx, dword [esp + 4]
test edx, edx
je 0x4054fc
add ebx, edi
cmp dx, 4
jb 0x405517
movzx ecx, byte [edx + ebx - 1]
test ecx, ecx
je 0x4054f7
lea esi, [edx - 4]
mov dword [esp + 0x3c], esi
mov esi, dword [ebx + edx - 4]
mov dword [esp + 0x30], esi
bsr ecx, ecx
xor ecx, 0x1f
add ecx, 0xffffffe9
mov dword [esp + 0x38], ecx
jmp 0x40556d
mov ebp, 0xffffffff
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0040d9a4
mov eax, ebp
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret
movzx esi, byte [ebx]
cmp edx, 2
je 0x405535
mov dword [esp + 0x30], esi
cmp edx, 3
jne 0x405542
movzx ecx, byte [ebx + 2]
shl ecx, 0x10
mov esi, dword [esp + 0x30]
or esi, ecx
movzx ecx, byte [ebx + 1]
shl ecx, 8
add esi, ecx
mov dword [esp + 0x30], esi
movzx ecx, byte [edx + ebx - 1]
test ecx, ecx
je 0x405353
bsr esi, ecx
xor esi, 0x1f
lea ecx, [edx*8]
sub esi, ecx
add esi, 9
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0
add edx, ebx
lea ecx, [esp + 0x98]
push eax
call fcn.0040cea0
add esp, 4
mov ebp, eax
cmp eax, 0xffffff88
ja 0x4054fc
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
lea eax, [ecx + edx]
add eax, 0xfffffffd
add dword [esp + 0xc], 4
add edx, 3
shr edx, 2
lea esi, [ecx + edx]
lea ebp, [esi + edx]
add edx, ebp
mov ecx, ebx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], eax
cmp edx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebp
jae 0x405904
mov eax, dword [esp + 0x1c]
neg eax
and eax, 0x1f
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edx
mov ebx, dword [esp]
mov dword [esp + 0x14], esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x34], ebp
mov ebp, ebx
mov edi, ebx
mov edx, dword [esp + 0x10]
mov ecx, edx
shl edi, cl
mov ecx, dword [esp + 4]
shr edi, cl
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + edi*4]
mov esi, dword [esp + 0x18]
mov word [esi], cx
movzx ebx, byte [eax + edi*4 + 2]
add ebx, edx
movzx edx, byte [eax + edi*4 + 3]
mov dword [esp], ebp
mov edi, ebp
mov ecx, ebx
shl edi, cl
mov ecx, dword [esp + 4]
shr edi, cl
movzx ecx, word [eax + edi*4]
mov dword [esp + 0x7c], edx
mov word [esi + edx], cx
mov edx, dword [esp + 0x20]
mov ebp, edx
mov ecx, dword [esp + 8]
shl ebp, cl
mov ecx, dword [esp + 4]
shr ebp, cl
movzx ecx, byte [eax + edi*4 + 2]
add ecx, ebx
mov ebx, ecx
movzx edi, byte [eax + edi*4 + 3]
movzx ecx, word [eax + ebp*4]
mov esi, dword [esp + 0x14]
mov word [esi], cx
movzx ecx, byte [eax + ebp*4 + 2]
add ecx, dword [esp + 8]
movzx ebp, byte [eax + ebp*4 + 3]
mov dword [esp + 8], ecx
shl edx, cl
mov ecx, dword [esp + 4]
shr edx, cl
movzx ecx, word [eax + edx*4]
mov eax, esi
mov word [esi + ebp], cx
mov esi, dword [esp + 0x24]
cmp esi, 0xa
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebp
jge 0x4056e0
mov dword [esp + 0x6c], 3
mov dword [esp + 0x78], 3
jmp 0x405707
mov dword [esp + 0x6c], 3
mov ecx, ebx
shr ecx, 3
sub esi, ecx
and ebx, 7
mov eax, dword [esp + 0xc4]
mov eax, dword [eax + esi]
mov dword [esp], eax
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0xc]
movzx ecx, byte [eax + edx*4 + 2]
mov edi, dword [esp + 8]
add edi, ecx
movzx ecx, byte [eax + edx*4 + 3]
mov eax, dword [esp + 0x48]
cmp eax, 4
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x8c], ecx
jge 0x40573d
mov dword [esp + 8], edi
jmp 0x405762
mov ecx, edi
shr ecx, 3
sub eax, ecx
and edi, 7
mov dword [esp + 8], edi
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + eax]
mov dword [esp + 0x20], eax
mov dword [esp + 0x6c], 0
mov edi, dword [esp + 0x30]
mov edx, edi
mov ebx, dword [esp + 0x38]
mov ecx, ebx
shl edx, cl
mov ecx, dword [esp + 4]
mov esi, ecx
shr edx, cl
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + edx*4]
mov word [ebp], cx
movzx ecx, byte [eax + edx*4 + 2]
add ecx, ebx
mov dword [esp + 0x68], ecx
shl edi, cl
mov ebx, esi
mov ecx, ebx
shr edi, cl
movzx edx, byte [eax + edx*4 + 3]
movzx ecx, word [eax + edi*4]
mov dword [esp + 0x88], edx
mov word [ebp + edx], cx
movzx ecx, byte [eax + edi*4 + 2]
mov dword [esp + 0x38], ecx
movzx ecx, byte [eax + edi*4 + 3]
mov dword [esp + 0x84], ecx
mov esi, dword [esp + 0x64]
mov edi, esi
mov ecx, dword [esp + 0x5c]
shl edi, cl
mov ecx, ebx
shr edi, cl
movzx ecx, word [eax + edi*4]
mov ebp, dword [esp + 0x28]
mov word [ebp], cx
movzx edx, byte [eax + edi*4 + 2]
add edx, dword [esp + 0x5c]
mov ecx, edx
shl esi, cl
mov ecx, ebx
mov ebx, dword [esp + 0x38]
shr esi, cl
add ebx, dword [esp + 0x68]
movzx ecx, byte [eax + edi*4 + 3]
movzx edi, word [eax + esi*4]
mov word [ebp + ecx], di
movzx edi, byte [eax + esi*4 + 2]
movzx esi, byte [eax + esi*4 + 3]
mov eax, 3
mov ebp, dword [esp + 0x3c]
cmp ebp, 4
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x68], esi
jge 0x405832
mov dword [esp + 0x38], ebx
mov dword [esp + 0x74], 3
jmp 0x405857
mov esi, ebx
shr esi, 3
sub ebp, esi
and ebx, 7
mov dword [esp + 0x38], ebx
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebp
mov esi, dword [esi + ebp]
mov dword [esp + 0x30], esi
mov dword [esp + 0x74], 0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x18]
add ebx, ecx
add esi, dword [esp + 0x90]
add edx, edi
mov ecx, dword [esp + 0x60]
cmp ecx, dword [esp + 0x80]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
jb 0x40589d
mov eax, esi
mov esi, edx
shr esi, 3
sub ecx, esi
mov esi, eax
and edx, 7
mov dword [esp + 0x60], ecx
mov eax, dword [ecx]
mov dword [esp + 0x64], eax
xor eax, eax
mov ecx, edx
add ebx, dword [esp + 0x94]
mov dword [esp + 0x18], ebx
add esi, dword [esp + 0x8c]
add ebp, dword [esp + 0x88]
add ebp, dword [esp + 0x84]
add edi, dword [esp + 0x5c]
add edi, dword [esp + 0x68]
mov dword [esp + 0x28], edi
cmp edi, dword [esp + 0x70]
mov ebx, dword [esp]
jae 0x4058e8
mov edx, dword [esp + 0x6c]
or edx, dword [esp + 0x78]
or edx, dword [esp + 0x74]
or edx, eax
je 0x405614
mov dword [esp + 0x9c], ecx
mov eax, dword [esp + 0x60]
mov dword [esp + 0xa0], eax
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
jmp 0x40590f
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x98], eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x54]
ja 0x405353
cmp esi, dword [esp + 0x50]
ja 0x405353
mov eax, ebp
mov ebp, 0xffffffec
mov dword [esp + 0x34], eax
cmp eax, edx
ja 0x4054fc
cmp dword [esp + 0x10], 0x21
jb 0x40595e
mov ecx, dword [esp + 0x1c]
neg ecx
and ecx, 0x1f
mov ebp, dword [esp + 0xc]
jmp 0x405a5b
mov eax, dword [esp + 0x54]
add eax, 0xfffffffd
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
neg eax
and eax, 0x1f
mov dword [esp + 4], eax
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x24]
cmp edi, 0xa
jge 0x4059c7
cmp edi, 6
je 0x405a8b
mov eax, dword [esp + 0x10]
mov esi, eax
shr esi, 3
mov edi, dword [esp + 0x24]
sub edi, esi
mov ecx, dword [esp + 0x24]
lea edx, [ecx - 6]
xor ecx, ecx
cmp edi, 6
mov edi, dword [esp + 0x24]
setl cl
cmovge edx, esi
lea esi, [edx*8]
sub eax, esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x4059d9
mov eax, dword [esp + 0x10]
mov edx, eax
shr edx, 3
and eax, 7
mov dword [esp + 0x10], eax
xor ecx, ecx
sub edi, edx
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0xc4]
mov edi, dword [eax + edi]
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp]
jae 0x405a71
test ecx, ecx
jne 0x405a71
mov esi, edi
mov eax, dword [esp + 0x10]
mov ecx, eax
shl esi, cl
mov ecx, dword [esp + 4]
shr esi, cl
movzx ecx, word [ebp + esi*4]
mov word [ebx], cx
movzx edx, byte [ebp + esi*4 + 2]
add edx, eax
movzx esi, byte [ebp + esi*4 + 3]
mov eax, ebx
mov ebx, edi
mov ecx, edx
shl edi, cl
mov ecx, dword [esp + 4]
shr edi, cl
movzx ecx, word [ebp + edi*4]
mov word [eax + esi], cx
lea ecx, [eax + esi]
mov esi, dword [esp + 0x14]
movzx eax, byte [ebp + edi*4 + 2]
add eax, edx
movzx edx, byte [ebp + edi*4 + 3]
add edx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
cmp eax, 0x21
jb 0x40597d
mov ecx, dword [esp + 4]
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0x54]
add eax, 0xfffffffe
mov edi, ebx
mov ebx, dword [esp + 0x18]
jmp 0x405b7c
mov eax, dword [esp + 0x54]
add eax, 0xfffffffe
mov dword [esp], eax
cmp dword [esp + 0x10], 0x20
jbe 0x405aa3
mov dword [esp + 0xc], ebp
jmp 0x405b75
mov eax, dword [esp + 0x54]
add eax, 0xfffffffe
mov dword [esp], eax
mov dword [esp + 0x24], 6
mov edi, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0x24]
cmp esi, 0xa
mov dword [esp + 0x18], ebx
jge 0x405ae5
cmp esi, 6
je 0x405b49
mov eax, dword [esp + 0x10]
mov edx, eax
shr edx, 3
mov edi, esi
sub edi, edx
lea ecx, [esi - 6]
xor ebx, ebx
cmp edi, 6
cmovge ecx, edx
setl bl
lea edx, [ecx*8]
sub eax, edx
mov edx, eax
jmp 0x405af3
mov edx, dword [esp + 0x10]
mov ecx, edx
shr ecx, 3
and edx, 7
xor ebx, ebx
sub esi, ecx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc4]
mov edi, dword [eax + esi]
mov eax, dword [esp]
cmp dword [esp + 0x18], eax
ja 0x405b57
test ebx, ebx
jne 0x405b69
mov esi, edi
mov ecx, edx
shl esi, cl
mov ecx, dword [esp + 4]
shr esi, cl
movzx ecx, word [ebp + esi*4]
mov ebx, dword [esp + 0x18]
mov word [ebx], cx
movzx eax, byte [ebp + esi*4 + 2]
add eax, edx
movzx ecx, byte [ebp + esi*4 + 3]
add ebx, ecx
mov dword [esp + 0x10], eax
cmp eax, 0x20
jbe 0x405aa7
mov esi, dword [esp + 0x14]
jmp 0x405b75
mov dword [esp + 0x24], 6
mov esi, dword [esp + 0x14]
jmp 0x405b75
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 4]
jmp 0x405b7c
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 4]
mov eax, dword [esp]
mov dword [esp], edi
mov dword [esp + 4], ecx
cmp ebx, eax
jbe 0x405b8d
mov eax, dword [esp + 0x10]
jmp 0x405bbd
mov ebp, eax
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp]
mov ecx, eax
shl edx, cl
mov ecx, dword [esp + 4]
shr edx, cl
movzx ecx, word [edi + edx*4]
mov word [ebx], cx
movzx ecx, byte [edi + edx*4 + 2]
add eax, ecx
movzx ecx, byte [edi + edx*4 + 3]
add ebx, ecx
cmp ebx, ebp
jbe 0x405b97
mov dword [esp + 0x10], eax
cmp ebx, dword [esp + 0x54]
jae 0x405bf7
mov edx, dword [esp + 0x10]
mov ecx, edx
mov edi, dword [esp]
shl edi, cl
mov ecx, dword [esp + 4]
shr edi, cl
mov ebp, dword [esp + 0xc]
movzx eax, byte [ebp + edi*4]
mov byte [ebx], al
cmp byte [ebp + edi*4 + 3], 1
mov ecx, dword [esp + 0x1c]
jne 0x405c01
movzx eax, byte [ebp + edi*4 + 2]
add edx, eax
jmp 0x405c18
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xc]
jmp 0x405c1c
cmp edx, 0x1f
ja 0x405c1c
movzx eax, byte [ebp + edi*4 + 2]
add edx, eax
cmp edx, 0x20
mov eax, 0x20
cmovae edx, eax
mov dword [esp + 0x10], edx
cmp dword [esp + 8], 0x21
jb 0x405c37
mov ebx, ecx
neg ebx
and ebx, 0x1f
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
jmp 0x405d21
mov eax, dword [esp + 0x50]
add eax, 0xfffffffd
mov dword [esp + 4], eax
neg ecx
and ecx, 0x1f
mov dword [esp], ecx
mov eax, dword [esp + 8]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x48]
cmp esi, 4
jge 0x405c92
mov dword [esp + 8], eax
test esi, esi
mov ebx, dword [esp + 0x44]
je 0x405d64
lea edi, [ebx + esi]
mov eax, dword [esp + 8]
mov ecx, eax
shr ecx, 3
sub edi, ecx
xor edx, edx
cmp edi, ebx
setb dl
cmovb ecx, esi
lea edi, [ecx*8]
sub eax, edi
mov dword [esp + 8], eax
jmp 0x405ca4
mov ecx, eax
shr ecx, 3
and eax, 7
mov dword [esp + 8], eax
xor edx, edx
mov ebx, dword [esp + 0x44]
sub esi, ecx
mov dword [esp + 0x48], esi
mov ecx, ebx
mov eax, dword [ebx + esi]
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 4]
mov dword [esp + 0x20], eax
jae 0x405d35
test edx, edx
jne 0x405d35
mov ebx, eax
mov edi, eax
mov eax, dword [esp + 8]
mov ecx, eax
shl edi, cl
mov ecx, dword [esp]
shr edi, cl
movzx ecx, word [ebp + edi*4]
mov word [esi], cx
movzx edx, byte [ebp + edi*4 + 2]
add edx, eax
movzx edi, byte [ebp + edi*4 + 3]
mov ecx, edx
shl ebx, cl
mov ecx, dword [esp]
shr ebx, cl
movzx ecx, word [ebp + ebx*4]
mov word [esi + edi], cx
lea ecx, [esi + edi]
movzx eax, byte [ebp + ebx*4 + 2]
add eax, edx
movzx esi, byte [ebp + ebx*4 + 3]
add esi, ecx
cmp eax, 0x21
jb 0x405c4e
mov dword [esp + 8], eax
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
mov ebx, dword [esp]
mov ecx, dword [esp + 0x50]
lea edx, [ecx - 2]
add eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
jmp 0x405e31
mov edx, dword [esp + 0x48]
mov edi, ecx
lea eax, [ecx + edx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffffe
mov dword [esp + 4], eax
cmp dword [esp + 8], 0x20
jbe 0x405d7b
mov edi, dword [esp + 0x20]
mov ebx, dword [esp]
mov edx, dword [esp + 4]
jmp 0x405e31
mov eax, dword [esp + 0x50]
add eax, 0xfffffffe
mov dword [esp + 4], eax
xor edx, edx
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x14]
mov edi, ebx
cmp edx, 4
mov dword [esp + 0x14], esi
jge 0x405db6
test edx, edx
je 0x405e26
mov eax, dword [esp + 8]
mov ecx, eax
shr ecx, 3
mov esi, dword [esp + 0x18]
sub esi, ecx
xor ebx, ebx
cmp esi, edi
cmovb ecx, edx
setb bl
mov esi, edx
lea edx, [ecx*8]
sub eax, edx
mov dword [esp + 8], eax
jmp 0x405dca
mov esi, edx
mov edx, dword [esp + 8]
mov ecx, edx
shr ecx, 3
and edx, 7
xor ebx, ebx
mov dword [esp + 8], edx
sub esi, ecx
lea eax, [edi + esi]
mov dword [esp + 0x18], eax
mov edx, esi
mov edi, dword [edi + esi]
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 4]
ja 0x405d58
test ebx, ebx
jne 0x405d58
mov dword [esp + 0x20], edi
mov ebx, dword [esp + 8]
mov ecx, ebx
shl edi, cl
mov ecx, dword [esp]
shr edi, cl
movzx ecx, word [ebp + edi*4]
mov word [esi], cx
movzx eax, byte [ebp + edi*4 + 2]
add eax, ebx
movzx ecx, byte [ebp + edi*4 + 3]
add esi, ecx
mov dword [esp + 8], eax
cmp eax, 0x20
mov edi, dword [esp + 0x44]
jbe 0x405d7b
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 4]
mov ebx, dword [esp]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x20], edi
mov dword [esp], ebx
cmp esi, edx
jbe 0x405e46
mov eax, dword [esp + 8]
jmp 0x405e7a
mov eax, dword [esp + 8]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
mov ebx, edx
mov edx, ebp
mov ecx, eax
shl edx, cl
mov ecx, dword [esp]
shr edx, cl
movzx ecx, word [edi + edx*4]
mov word [esi], cx
movzx ecx, byte [edi + edx*4 + 2]
add eax, ecx
movzx ecx, byte [edi + edx*4 + 3]
mov edx, ebx
add esi, ecx
cmp esi, ebx
jbe 0x405e52
mov dword [esp + 8], eax
cmp esi, dword [esp + 0x50]
jae 0x405eb7
mov edx, dword [esp + 8]
mov ecx, edx
mov edi, dword [esp + 0x20]
shl edi, cl
mov ecx, dword [esp]
shr edi, cl
mov ecx, dword [esp + 0xc]
movzx eax, byte [ecx + edi*4]
mov byte [esi], al
mov eax, ecx
cmp byte [ecx + edi*4 + 3], 1
mov ecx, dword [esp + 0x1c]
jne 0x405ebd
mov esi, eax
movzx eax, byte [eax + edi*4 + 2]
add edx, eax
jmp 0x405ed6
mov ecx, dword [esp + 0x1c]
jmp 0x405eda
cmp edx, 0x1f
ja 0x405eda
mov esi, eax
movzx eax, byte [eax + edi*4 + 2]
add edx, eax
cmp edx, 0x20
mov eax, 0x20
cmovae edx, eax
mov dword [esp + 8], edx
mov ebp, dword [esp + 0x38]
cmp ebp, 0x21
jb 0x405ef1
neg ecx
and ecx, 0x1f
mov dword [esp + 4], ecx
jmp 0x405fc2
mov eax, dword [esp + 0x4c]
add eax, 0xfffffffd
mov dword [esp], eax
neg ecx
and ecx, 0x1f
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x3c]
cmp esi, 4
jge 0x405f3e
test esi, esi
mov ebx, dword [esp + 0x2c]
je 0x405fff
mov ecx, dword [esp + 0x2c]
lea edi, [ecx + esi]
mov ecx, ebp
shr ecx, 3
sub edi, ecx
xor edx, edx
cmp edi, dword [esp + 0x2c]
setb dl
cmovb ecx, esi
lea edi, [ecx*8]
sub ebp, edi
jmp 0x405f48
mov ecx, ebp
shr ecx, 3
and ebp, 7
xor edx, edx
mov ebx, dword [esp + 0x2c]
sub esi, ecx
mov dword [esp + 0x3c], esi
mov ecx, dword [ebx + esi]
mov esi, dword [esp]
cmp dword [esp + 0x34], esi
mov dword [esp + 0x30], ecx
jae 0x405fe0
test edx, edx
jne 0x405fe0
mov edi, ecx
mov eax, ebp
mov ebx, ecx
mov ecx, eax
shl edi, cl
mov ecx, dword [esp + 4]
shr edi, cl
mov edx, dword [esp + 0xc]
movzx ecx, word [edx + edi*4]
mov esi, dword [esp + 0x34]
mov word [esi], cx
movzx ecx, byte [edx + edi*4 + 2]
add ecx, ebp
movzx edi, byte [edx + edi*4 + 3]
mov ebp, ecx
shl ebx, cl
mov ecx, dword [esp + 4]
shr ebx, cl
movzx ecx, word [edx + ebx*4]
mov word [esi + edi], cx
movzx eax, byte [edx + ebx*4 + 2]
add eax, ebp
mov ebp, eax
movzx eax, byte [edx + ebx*4 + 3]
add eax, esi
add eax, edi
mov dword [esp + 0x34], eax
cmp ebp, 0x21
jb 0x405f04
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
lea ebx, [eax - 2]
mov eax, dword [esp + 0x3c]
add eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x30]
jmp 0x4060b8
mov edx, dword [esp + 0x3c]
lea ecx, [ebx + edx]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
add ecx, 0xfffffffe
mov dword [esp], ecx
cmp ebp, 0x20
jbe 0x40600f
jmp 0x4060b1
mov eax, dword [esp + 0x4c]
add eax, 0xfffffffe
mov dword [esp], eax
xor edx, edx
mov dword [esp + 0x14], ebx
cmp edx, 4
jge 0x406042
test edx, edx
je 0x4060b1
mov ecx, ebp
shr ecx, 3
mov eax, dword [esp + 0x14]
sub eax, ecx
xor ebx, ebx
mov esi, dword [esp + 0x2c]
cmp eax, esi
cmovb ecx, edx
setb bl
mov edi, edx
lea edx, [ecx*8]
sub ebp, edx
jmp 0x406050
mov ecx, ebp
shr ecx, 3
and ebp, 7
mov esi, ebx
xor ebx, ebx
mov edi, edx
sub edi, ecx
lea eax, [esi + edi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], edi
mov ecx, dword [esi + edi]
mov eax, dword [esp]
cmp dword [esp + 0x34], eax
ja 0x4060b5
test ebx, ebx
jne 0x4060b5
mov dword [esp + 0x30], ecx
mov esi, ecx
mov edx, ebp
mov ecx, edx
shl esi, cl
mov ecx, dword [esp + 4]
shr esi, cl
mov ebx, dword [esp + 0xc]
movzx ecx, word [ebx + esi*4]
mov edi, dword [esp + 0x34]
mov word [edi], cx
movzx ebp, byte [ebx + esi*4 + 2]
add ebp, edx
movzx ecx, byte [ebx + esi*4 + 3]
add edi, ecx
mov dword [esp + 0x34], edi
cmp ebp, 0x20
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
jbe 0x40600f
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp]
cmp dword [esp + 0x34], ebx
jbe 0x4060c6
mov eax, ebp
mov ebp, dword [esp + 0x34]
jmp 0x406100
mov esi, dword [esp + 0xc]
mov eax, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp], ebx
mov ebx, dword [esp + 4]
mov edx, ecx
mov edi, ecx
mov ecx, eax
shl edx, cl
mov ecx, ebx
shr edx, cl
movzx ecx, word [esi + edx*4]
mov word [ebp], cx
movzx ecx, byte [esi + edx*4 + 2]
add eax, ecx
movzx ecx, byte [esi + edx*4 + 3]
add ebp, ecx
mov ecx, edi
cmp ebp, dword [esp]
jbe 0x4060d7
mov dword [esp + 0x38], eax
cmp ebp, dword [esp + 0x4c]
jae 0x40613d
mov ebx, dword [esp + 0x38]
mov eax, ecx
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 4]
shr eax, cl
mov ecx, eax
mov edx, dword [esp + 0xc]
movzx eax, byte [edx + eax*4]
mov byte [ebp], al
mov ebp, edx
cmp byte [edx + ecx*4 + 3], 1
mov edx, dword [esp + 0x40]
jne 0x406147
movzx eax, byte [ebp + ecx*4 + 2]
add ebx, eax
jmp 0x40615e
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0xc]
jmp 0x406162
cmp ebx, 0x1f
ja 0x406162
movzx eax, byte [ebp + ecx*4 + 2]
add ebx, eax
cmp ebx, 0x20
mov eax, 0x20
cmovae ebx, eax
mov dword [esp + 0x38], ebx
add edx, dword [esp + 0x58]
mov eax, dword [esp + 0x9c]
cmp eax, 0x21
mov dword [esp + 0x40], edx
jb 0x40618b
mov ecx, dword [esp + 0x1c]
neg ecx
and ecx, 0x1f
mov dword [esp + 0x1c], ecx
lea ecx, [edx - 2]
jmp 0x406351
mov ecx, dword [esp + 0x1c]
neg ecx
and ecx, 0x1f
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
cmp ebx, ecx
jae 0x4061e9
mov ebp, dword [esp + 0xa4]
mov edi, ebx
sub edi, ebp
je 0x40628b
mov edx, eax
shr edx, 3
mov esi, ebx
sub esi, edx
xor ecx, ecx
cmp esi, ebp
setb cl
cmovb edx, edi
sub ebx, edx
mov dword [esp + 0xa0], ebx
shl edx, 3
sub eax, edx
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0xc]
jmp 0x4061fc
mov ecx, eax
shr ecx, 3
sub ebx, ecx
mov dword [esp + 0xa0], ebx
and eax, 7
xor ecx, ecx
mov dword [esp + 0x9c], eax
mov edi, dword [ebx]
mov dword [esp + 0x98], edi
mov esi, dword [esp + 0x70]
cmp dword [esp + 0x28], esi
jae 0x406282
test ecx, ecx
jne 0x406282
mov esi, edi
mov ecx, eax
shl esi, cl
mov ecx, dword [esp + 0x1c]
shr esi, cl
movzx ecx, word [ebp + esi*4]
mov ebx, dword [esp + 0x28]
mov word [ebx], cx
movzx edx, byte [ebp + esi*4 + 2]
add edx, eax
movzx eax, byte [ebp + esi*4 + 3]
mov ecx, edx
shl edi, cl
mov ecx, dword [esp + 0x1c]
shr edi, cl
movzx ecx, word [ebp + edi*4]
mov word [ebx + eax], cx
lea ecx, [ebx + eax]
movzx eax, byte [ebp + edi*4 + 2]
add eax, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x9c], eax
movzx esi, byte [ebp + edi*4 + 3]
add esi, ecx
mov dword [esp + 0x28], esi
cmp eax, 0x21
jb 0x406198
lea ecx, [edx - 2]
jmp 0x406351
lea ecx, [edx - 2]
mov dword [esp + 4], ecx
jmp 0x406298
lea ecx, [edx - 2]
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0xc]
jmp 0x4062a1
cmp eax, 0x20
ja 0x40634d
cmp ebx, dword [esp]
jae 0x4062de
mov esi, dword [esp + 0xa4]
mov edi, ebx
sub edi, esi
je 0x40634d
mov edx, eax
shr edx, 3
mov ebp, ebx
sub ebp, edx
xor ecx, ecx
cmp ebp, esi
mov ebp, dword [esp + 0xc]
setb cl
cmovb edx, edi
sub ebx, edx
mov dword [esp + 0xa0], ebx
shl edx, 3
sub eax, edx
jmp 0x4062f1
mov ecx, eax
shr ecx, 3
sub ebx, ecx
mov dword [esp + 0xa0], ebx
and eax, 7
xor ecx, ecx
mov edx, eax
mov dword [esp + 0x9c], eax
mov edi, dword [ebx]
mov dword [esp + 0x98], edi
mov eax, dword [esp + 4]
cmp dword [esp + 0x28], eax
ja 0x406345
test ecx, ecx
jne 0x40634b
mov ecx, edx
shl edi, cl
mov ecx, dword [esp + 0x1c]
shr edi, cl
movzx eax, word [ebp + edi*4]
mov esi, dword [esp + 0x28]
mov word [esi], ax
movzx eax, byte [ebp + edi*4 + 2]
add eax, edx
mov dword [esp + 0x9c], eax
movzx ecx, byte [ebp + edi*4 + 3]
add esi, ecx
mov dword [esp + 0x28], esi
jmp 0x406298
mov ecx, eax
mov eax, edx
jmp 0x406351
mov eax, edx
mov ecx, dword [esp + 4]
cmp dword [esp + 0x28], ecx
jbe 0x40635d
mov esi, dword [esp + 0x28]
jmp 0x40639c
mov ebx, ecx
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x98]
mov ecx, eax
shl edx, cl
mov ecx, edi
shr edx, cl
movzx eax, word [ebp + edx*4]
mov word [esi], ax
movzx eax, byte [ebp + edx*4 + 2]
add eax, dword [esp + 0x9c]
mov dword [esp + 0x9c], eax
movzx ecx, byte [ebp + edx*4 + 3]
add esi, ecx
cmp esi, ebx
jbe 0x406367
cmp esi, dword [esp + 0x40]
jae 0x4063d7
mov edx, dword [esp + 0x98]
mov ecx, eax
shl edx, cl
mov ecx, dword [esp + 0x1c]
shr edx, cl
movzx eax, byte [ebp + edx*4]
mov byte [esi], al
cmp byte [ebp + edx*4 + 3], 1
mov edi, dword [esp + 0x2c]
jne 0x4063e1
movzx eax, byte [ebp + edx*4 + 2]
add eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x44]
jmp 0x406403
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
jmp 0x406403
mov eax, dword [esp + 0x9c]
cmp eax, 0x1f
mov esi, dword [esp + 0x44]
ja 0x406403
movzx ecx, byte [ebp + edx*4 + 2]
add eax, ecx
cmp eax, 0x20
mov ecx, 0x20
cmovae eax, ecx
mov ecx, dword [esp + 0x24]
xor ecx, 6
mov edx, dword [esp + 0x10]
xor edx, 0x20
or edx, ecx
mov ecx, dword [esp + 0x18]
xor ecx, esi
mov esi, dword [esp + 8]
xor esi, 0x20
or esi, ecx
mov ecx, dword [esp + 0x14]
xor ecx, edi
mov edi, dword [esp + 0x38]
xor edi, 0x20
or edi, ecx
mov ecx, dword [esp + 0xa0]
xor ecx, dword [esp + 0xa4]
xor eax, 0x20
or eax, ecx
or eax, edi
or eax, esi
or eax, edx
mov ebp, 0xffffffec
cmove ebp, dword [esp + 0x58]
jmp 0x4054fc