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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x90
mov eax, dword [esp + 0xa8]
mov esi, dword [section..data]
xor esi, esp
mov dword [esp + 0x8c], esi
mov ebp, 0xffffffec
cmp eax, 0xa
jb 0x403d44
mov dword [esp + 0x60], edx
mov dword [esp + 0x4c], ecx
mov edi, dword [esp + 0xa4]
movzx ecx, word [edi]
movzx ebx, word [edi + 2]
movzx edx, word [edi + 4]
lea esi, [ecx + ebx]
add esi, 6
add esi, edx
sub eax, esi
jb 0x403d44
mov dword [esp + 4], edx
mov ebp, 0xffffffb8
test ecx, ecx
je 0x403d44
mov esi, dword [esp + 0xac]
movzx esi, word [esi + 2]
mov dword [esp + 0x18], esi
cmp cx, 4
jb 0x40380c
movzx esi, byte [edi + ecx + 5]
test esi, esi
je 0x403943
lea edi, [ecx + 2]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0xa4]
mov edx, dword [edi + ecx + 2]
mov dword [esp + 8], edx
bsr edx, esi
xor edx, 0x1f
add edx, 0xffffffe9
jmp 0x403865
movzx edx, byte [edi + 6]
mov dword [esp + 8], edx
cmp ecx, 2
je 0x40382d
cmp ecx, 3
jne 0x40383e
movzx esi, byte [edi + 8]
shl esi, 0x10
mov edx, dword [esp + 8]
or edx, esi
jmp 0x403831
mov edx, dword [esp + 8]
movzx esi, byte [edi + 7]
shl esi, 8
add edx, esi
mov dword [esp + 8], edx
movzx esi, byte [edi + ecx + 5]
test esi, esi
je 0x403d3f
bsr edx, esi
xor edx, 0x1f
lea esi, [ecx*8]
sub edx, esi
add edx, 9
mov dword [esp + 0x2c], 6
test ebx, ebx
je 0x403d44
lea esi, [edi + ecx]
add esi, 6
cmp bx, 4
mov dword [esp + 0x30], esi
jb 0x4038ad
movzx ecx, byte [ebx + esi - 1]
test ecx, ecx
je 0x403943
mov dword [esp + 0x28], edx
lea edi, [ebx - 4]
mov dword [esp + 0x38], edi
mov edi, ebx
mov esi, dword [esi + ebx - 4]
mov dword [esp + 0x24], esi
bsr ecx, ecx
xor ecx, 0x1f
add ecx, 0xffffffe9
mov dword [esp], ecx
jmp 0x403900
movzx edi, byte [esi]
cmp ebx, 2
je 0x4038c3
cmp ebx, 3
jne 0x4038cc
movzx ecx, byte [esi + 2]
shl ecx, 0x10
or edi, ecx
movzx ecx, byte [esi + 1]
shl ecx, 8
add edi, ecx
movzx ecx, byte [ebx + esi - 1]
test ecx, ecx
je 0x403d3f
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edi
bsr esi, ecx
xor esi, 0x1f
mov edi, ebx
lea ecx, [ebx*8]
sub esi, ecx
add esi, 9
mov dword [esp], esi
mov dword [esp + 0x38], 0
mov edx, dword [esp + 4]
test edx, edx
je 0x403d44
mov esi, edi
add esi, dword [esp + 0x30]
cmp dx, 4
jb 0x40394d
movzx ecx, byte [edx + esi - 1]
test ecx, ecx
je 0x403943
mov ebx, dword [esp + 0x28]
lea edi, [edx - 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi + edx - 4]
mov dword [esp + 0x1c], edi
bsr ecx, ecx
xor ecx, 0x1f
add ecx, 0xffffffe9
mov dword [esp + 0xc], ecx
jmp 0x40399f
mov ebp, 0xffffffff
jmp 0x403d44
movzx edi, byte [esi]
cmp edx, 2
je 0x403963
cmp edx, 3
jne 0x40396c
movzx ecx, byte [esi + 2]
shl ecx, 0x10
or edi, ecx
movzx ecx, byte [esi + 1]
shl ecx, 8
add edi, ecx
movzx ecx, byte [edx + esi - 1]
test ecx, ecx
je 0x403d3f
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
bsr edi, ecx
xor edi, 0x1f
lea ecx, [edx*8]
sub edi, ecx
add edi, 9
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], esi
add edx, esi
lea ecx, [esp + 0x78]
push eax
call fcn.0040cea0
add esp, 4
mov ebp, eax
cmp eax, 0xffffff88
ja 0x403d44
mov dword [esp + 0x28], ebx
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x4c]
lea ecx, [eax + edi]
add ecx, 0xfffffffd
lea ebp, [edi + 3]
shr ebp, 2
lea edi, [eax + ebp]
lea ebx, [edi + ebp]
lea edx, [ebx + ebp]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x48], esi
mov dword [esp + 0x64], ecx
cmp edx, ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], edi
jae 0x403cde
mov ecx, dword [esp + 0x18]
neg ecx
and ecx, 0x1f
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x80]
mov dword [esp + 0x20], ebp
lea ecx, [ebp*2]
add ecx, ebp
mov dword [esp + 0x34], ecx
mov ecx, eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
mov ecx, eax
shl esi, cl
mov ebx, dword [esp + 0x40]
mov ecx, ebx
shr esi, cl
mov ecx, dword [esp]
mov edi, edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x24]
shl edx, cl
mov ecx, ebx
shr edx, cl
mov ecx, dword [esp + 0xc]
mov ebp, edi
shl ebp, cl
mov ecx, ebx
shr ebp, cl
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0xac]
movzx edi, byte [ebp + esi*2 + 5]
add edi, eax
mov dword [esp + 0x58], edi
mov ecx, dword [esp + 4]
mov ebp, dword [esp + 0x48]
shl ebp, cl
mov ecx, ebx
shr ebp, cl
mov eax, dword [esp + 8]
mov ecx, edi
shl eax, cl
mov ecx, ebx
shr eax, cl
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0xac]
movzx ecx, byte [ebx + esi*2 + 4]
mov edi, dword [esp + 0x5c]
mov byte [edi], cl
movzx eax, byte [ebx + edx*2 + 5]
add eax, dword [esp]
movzx ecx, byte [ebx + edx*2 + 4]
mov edx, dword [esp + 0x20]
mov byte [edi + edx], cl
mov ecx, dword [esp + 0x14]
movzx edx, byte [ebx + ecx*2 + 5]
add edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
mov dword [esp], eax
mov ecx, eax
shl ebx, cl
mov eax, dword [esp + 0x40]
mov ecx, eax
shr ebx, cl
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xc], edx
mov ecx, edx
shl esi, cl
mov ecx, eax
shr esi, cl
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x14]
movzx ecx, byte [eax + ecx*2 + 4]
mov edx, dword [esp + 0x20]
mov byte [edi + edx*2], cl
movzx edx, byte [eax + ebp*2 + 5]
add edx, dword [esp + 4]
movzx ecx, byte [eax + ebp*2 + 4]
mov ebp, dword [esp + 0x34]
mov byte [edi + ebp], cl
mov ecx, dword [esp + 0x28]
movzx ebp, byte [eax + ecx*2 + 5]
add ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
mov dword [esp + 4], edx
mov ecx, edx
shl eax, cl
mov ecx, dword [esp + 0x40]
shr eax, cl
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0x28]
movzx ecx, byte [edx + ecx*2 + 4]
mov byte [edi + 1], cl
movzx ecx, byte [edx + ebx*2 + 4]
movzx ebx, byte [edx + ebx*2 + 5]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x20]
mov byte [edi + ebx + 1], cl
movzx ecx, byte [edx + esi*2 + 4]
movzx esi, byte [edx + esi*2 + 5]
mov dword [esp + 0x58], esi
mov byte [edi + ebx*2 + 1], cl
movzx ecx, byte [edx + eax*2 + 4]
movzx eax, byte [edx + eax*2 + 5]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x34]
mov byte [edi + eax + 1], cl
mov eax, 3
mov edi, dword [esp + 0x2c]
cmp edi, 0xa
jge 0x403bbd
mov dword [esp + 0x28], ebp
mov dword [esp + 0x68], 3
jmp 0x403be1
mov ecx, ebp
shr ecx, 3
sub edi, ecx
and ebp, 7
mov dword [esp + 0x28], ebp
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx + edi]
mov dword [esp + 8], ecx
mov dword [esp + 0x68], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp]
add esi, dword [esp + 0x74]
cmp ecx, 4
jge 0x403bfa
mov dword [esp], esi
jmp 0x403c18
mov eax, esi
shr eax, 3
sub ecx, eax
and esi, 7
mov dword [esp], esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
mov eax, dword [eax + ecx]
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
add ecx, dword [esp + 0x58]
mov ebp, 3
cmp edx, 4
jge 0x403c39
mov dword [esp + 0xc], ecx
mov ebx, 3
jmp 0x403c56
mov esi, ecx
shr esi, 3
sub edx, esi
and ecx, 7
mov dword [esp + 0xc], ecx
mov esi, edx
mov dword [esp + 0x10], edx
mov edx, dword [ebx + edx]
mov dword [esp + 0x1c], edx
xor ebx, ebx
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 4]
add ecx, dword [esp + 0x5c]
cmp esi, dword [esp + 0x70]
mov dword [esp + 0x2c], edi
jae 0x403c72
mov dword [esp + 4], ecx
jmp 0x403c88
mov edx, ecx
shr edx, 3
sub esi, edx
and ecx, 7
mov dword [esp + 4], ecx
mov ecx, dword [esi]
mov dword [esp + 0x48], ecx
xor ebp, ebp
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
add edx, edi
add edx, 2
cmp edx, dword [esp + 0x64]
mov edx, dword [esp + 0x1c]
jae 0x403cb2
or eax, dword [esp + 0x68]
or eax, ebx
or eax, ebp
lea ecx, [edi + 2]
test eax, eax
je 0x403a3c
add edi, 2
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], esi
mov eax, dword [esp + 0x20]
lea esi, [edi + eax]
lea ecx, [edi + eax*2]
add dword [esp + 0x34], edi
mov ebx, dword [esp + 0x44]
mov eax, edi
mov edi, dword [esp + 0x50]
jmp 0x403cec
mov ecx, edx
mov dword [esp + 0x34], edx
mov ecx, ebx
mov esi, edi
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x78], ebp
cmp eax, edi
ja 0x403d3f
cmp esi, ebx
ja 0x403d3f
mov dword [esp + 0x1c], edx
mov ebp, 0xffffffec
cmp ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
ja 0x403d44
mov edi, eax
mov dword [esp + 0x20], esi
cmp edx, 0x21
mov dword [esp + 0x40], ecx
jb 0x403d5f
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x18]
neg ebx
and ebx, 0x1f
mov edi, dword [esp + 0xac]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 8]
jmp 0x403f18
mov ebp, 0xffffffec
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0040d9a4
mov eax, ebp
add esp, 0x90
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x50]
add eax, 0xfffffffd
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
neg eax
and eax, 0x1f
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x2c]
cmp ebp, 0xa
jge 0x403dc4
mov esi, dword [esp + 8]
cmp ebp, 6
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x14], edi
je 0x403e71
mov esi, edx
shr esi, 3
mov edi, edx
mov edx, ebp
sub ebp, esi
lea ecx, [edx - 6]
xor eax, eax
cmp ebp, 6
mov ebp, edx
mov edx, edi
mov edi, dword [esp + 0x14]
setl al
cmovge ecx, esi
lea esi, [ecx*8]
sub edx, esi
jmp 0x403dd5
mov ecx, edx
shr ecx, 3
and edx, 7
xor eax, eax
mov ebx, dword [esp + 0xa4]
sub ebp, ecx
mov esi, dword [ebx + ebp]
cmp edi, dword [esp + 0x48]
jae 0x403e5c
test eax, eax
jne 0x403e5c
mov dword [esp + 0x2c], ebp
mov ebp, esi
mov ecx, edx
shl ebp, cl
mov ebx, dword [esp + 4]
mov ecx, ebx
shr ebp, cl
mov eax, dword [esp + 0xac]
movzx eax, byte [eax + ebp*2 + 5]
add eax, edx
mov dword [esp + 8], esi
mov ecx, eax
shl esi, cl
mov ecx, ebx
shr esi, cl
mov ecx, dword [esp + 0xac]
movzx ecx, byte [ecx + ebp*2 + 4]
mov ebp, dword [esp + 0x2c]
mov byte [edi], cl
mov edx, dword [esp + 0xac]
movzx ecx, byte [edx + esi*2 + 4]
movzx edx, byte [edx + esi*2 + 5]
add edx, eax
mov byte [edi + 1], cl
add edi, 2
cmp edx, 0x20
jbe 0x403d7b
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0xac]
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
jmp 0x403f18
mov dword [esp + 0x14], edi
cmp edx, 0x20
jbe 0x403e76
mov edi, dword [esp + 0xac]
jmp 0x403f14
mov ebp, 6
mov edi, dword [esp + 0xac]
cmp ebp, 0xa
jge 0x403eb4
cmp ebp, 6
je 0x403f0f
mov esi, edx
shr esi, 3
mov edi, ebp
sub edi, esi
lea ecx, [ebp - 6]
xor eax, eax
cmp edi, 6
mov edi, dword [esp + 0xac]
cmovge ecx, esi
setl al
lea esi, [ecx*8]
sub edx, esi
jmp 0x403ebe
mov ecx, edx
shr ecx, 3
and edx, 7
xor eax, eax
sub ebp, ecx
mov esi, dword [ebx + ebp]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x50]
jae 0x403efd
test eax, eax
jne 0x403efd
mov eax, esi
mov ecx, edx
shl eax, cl
mov ecx, dword [esp + 4]
shr eax, cl
movzx ecx, byte [edi + eax*2 + 4]
movzx eax, byte [edi + eax*2 + 5]
add eax, edx
mov edx, eax
mov eax, dword [esp + 0x14]
mov byte [eax], cl
inc eax
mov dword [esp + 0x14], eax
cmp edx, 0x20
jbe 0x403e7d
jmp 0x403f14
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x14], eax
mov ecx, edx
mov ebx, dword [esp + 4]
jb 0x403f24
jmp 0x403f5a
mov ebp, 6
mov ebx, dword [esp + 4]
mov ecx, edx
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x14], eax
jae 0x403f5a
mov dword [esp + 4], ebx
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov eax, ecx
mov edx, esi
shl esi, cl
mov ecx, dword [esp + 4]
shr esi, cl
movzx ecx, byte [edi + esi*2 + 5]
add ecx, eax
movzx eax, byte [edi + esi*2 + 4]
mov esi, edx
mov byte [ebp], al
mov eax, ebx
inc ebp
cmp ebp, ebx
jb 0x403f30
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
cmp dword [esp], 0x21
mov dword [esp + 0x2c], ebp
jb 0x403f82
mov eax, dword [esp + 0x18]
neg eax
and eax, 0x1f
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
jmp 0x404075
mov eax, dword [esp + 0x44]
lea ecx, [eax - 3]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x18]
neg ecx
and ecx, 0x1f
mov dword [esp + 8], ecx
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
cmp esi, 4
jge 0x403fd8
test esi, esi
je 0x404095
mov edx, dword [esp + 0x30]
lea edi, [edx + esi]
mov ebx, dword [esp]
mov eax, ebx
shr eax, 3
sub edi, eax
xor ecx, ecx
cmp edi, edx
setb cl
cmovb eax, esi
lea edi, [eax*8]
sub ebx, edi
mov dword [esp], ebx
jmp 0x403fec
mov ecx, dword [esp]
mov eax, ecx
shr eax, 3
and ecx, 7
mov dword [esp], ecx
xor ecx, ecx
mov edx, dword [esp + 0x30]
sub esi, eax
mov dword [esp + 0x38], esi
mov edi, dword [edx + esi]
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 4]
jae 0x40407e
test ecx, ecx
jne 0x40407e
mov ebp, edi
mov edx, dword [esp]
mov ecx, edx
shl edi, cl
mov ebx, dword [esp + 8]
mov ecx, ebx
shr edi, cl
mov eax, dword [esp + 0xac]
movzx eax, byte [eax + edi*2 + 5]
add eax, edx
mov dword [esp + 0x24], ebp
mov ecx, eax
shl ebp, cl
mov ecx, ebx
shr ebp, cl
mov ecx, dword [esp + 0xac]
movzx ecx, byte [ecx + edi*2 + 4]
mov edi, dword [esp + 0xac]
mov byte [esi], cl
movzx ecx, byte [edi + ebp*2 + 4]
movzx edx, byte [edi + ebp*2 + 5]
add edx, eax
mov byte [esi + 1], cl
add esi, 2
mov dword [esp + 0x20], esi
mov dword [esp], edx
cmp edx, 0x21
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x38]
jb 0x403fa2
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 8]
add esi, dword [esp + 0x30]
jmp 0x40415f
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
add eax, esi
mov dword [esp + 4], eax
cmp dword [esp], 0x20
jmp 0x40414d
xor esi, esi
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x24]
cmp esi, 4
jge 0x4040e6
test esi, esi
je 0x404157
mov ebx, dword [esp + 4]
mov ecx, dword [esp]
mov eax, ecx
shr eax, 3
sub ebx, eax
mov edi, esi
mov edx, dword [esp + 0x30]
cmp ebx, edx
cmovb eax, esi
mov ebx, 0
setb bl
mov dword [esp + 4], ebx
lea esi, [eax*8]
sub ecx, esi
mov ebx, ecx
mov ecx, dword [esp + 4]
jmp 0x4040f9
mov ebx, dword [esp]
mov eax, ebx
shr eax, 3
and ebx, 7
mov edi, esi
xor ecx, ecx
mov edx, dword [esp + 0x30]
sub edi, eax
lea eax, [edx + edi]
mov dword [esp + 4], eax
mov esi, edi
mov edi, dword [edx + edi]
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x20], eax
jae 0x404638
test ecx, ecx
jne 0x404638
mov eax, edi
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 8]
shr eax, cl
mov edx, dword [esp + 0xac]
movzx ecx, byte [edx + eax*2 + 4]
movzx eax, byte [edx + eax*2 + 5]
add eax, ebx
mov edx, dword [esp + 0x20]
mov byte [edx], cl
inc edx
mov dword [esp + 0x20], edx
mov dword [esp], eax
cmp eax, 0x20
mov edx, dword [esp + 0x10]
jbe 0x4040a3
mov eax, dword [esp + 8]
mov esi, dword [esp + 4]
mov ebx, dword [esp]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x44]
jae 0x4041b1
mov dword [esp + 0x24], edi
mov dword [esp + 4], esi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xac]
mov edi, eax
mov eax, ebx
mov ebp, ecx
mov esi, dword [esp + 0x24]
mov ecx, eax
shl esi, cl
mov ecx, edi
shr esi, cl
movzx ebx, byte [edx + esi*2 + 5]
add ebx, eax
movzx eax, byte [edx + esi*2 + 4]
mov ecx, ebp
mov byte [ebp], al
inc ecx
cmp ecx, dword [esp + 0x44]
jb 0x404181
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 4]
mov dword [esp + 0x24], ebx
mov dword [esp + 4], esi
mov esi, dword [esp + 0xc]
cmp esi, 0x21
jb 0x4041dc
mov edx, dword [esp + 0x18]
neg edx
and edx, 0x1f
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
jmp 0x4042c1
mov eax, dword [esp + 0x54]
add eax, 0xfffffffd
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
neg eax
and eax, 0x1f
mov dword [esp], eax
mov edi, dword [esp + 0x40]
cmp edx, 4
jge 0x40423b
mov dword [esp + 0xc], esi
test edx, edx
mov ebx, dword [esp + 0x3c]
je 0x4042f2
lea esi, [ebx + edx]
mov dword [esp + 0x40], edi
mov ebp, dword [esp + 0xc]
mov eax, ebp
shr eax, 3
sub esi, eax
xor ecx, ecx
cmp esi, ebx
setb cl
cmovb eax, edx
lea esi, [eax*8]
sub ebp, esi
mov dword [esp + 0xc], ebp
mov edi, dword [esp + 0x40]
jmp 0x40424d
mov eax, esi
shr eax, 3
and esi, 7
mov dword [esp + 0xc], esi
xor ecx, ecx
mov ebx, dword [esp + 0x3c]
sub edx, eax
mov dword [esp + 0x10], edx
mov esi, dword [ebx + edx]
cmp edi, dword [esp + 8]
jae 0x4042d4
test ecx, ecx
jne 0x4042d4
mov ebx, esi
mov edx, dword [esp + 0xc]
mov ecx, edx
shl esi, cl
mov ecx, dword [esp]
shr esi, cl
mov ebp, dword [esp + 0xac]
movzx eax, byte [ebp + esi*2 + 5]
add eax, edx
mov dword [esp + 0x1c], ebx
mov ecx, eax
shl ebx, cl
mov ecx, dword [esp]
shr ebx, cl
movzx ecx, byte [ebp + esi*2 + 4]
mov byte [edi], cl
movzx ecx, byte [ebp + ebx*2 + 4]
movzx esi, byte [ebp + ebx*2 + 5]
add esi, eax
mov byte [edi + 1], cl
add edi, 2
cmp esi, 0x21
mov edx, dword [esp + 0x10]
jb 0x4041f7
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x3c]
mov ecx, edi
mov esi, dword [esp + 0x1c]
mov edx, dword [esp]
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0x34]
jmp 0x4043aa
mov ecx, edi
mov eax, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 8], eax
cmp dword [esp + 0xc], 0x20
jbe 0x404304
mov ebx, dword [esp + 0x34]
mov edi, ecx
jmp 0x4043a7
mov ecx, edi
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov esi, dword [esp + 0x1c]
mov edi, ecx
mov ebp, dword [esp + 0x10]
cmp ebp, 4
jge 0x40433b
test ebp, ebp
je 0x4043a3
mov edx, dword [esp + 0xc]
mov eax, edx
shr eax, 3
mov esi, dword [esp + 8]
sub esi, eax
xor ecx, ecx
cmp esi, ebx
cmovb eax, ebp
setb cl
lea esi, [eax*8]
sub edx, esi
jmp 0x404349
mov edx, dword [esp + 0xc]
mov eax, edx
shr eax, 3
and edx, 7
xor ecx, ecx
mov esi, ebx
sub ebp, eax
lea eax, [ebx + ebp]
mov dword [esp + 8], eax
mov dword [esp + 0x10], ebp
mov esi, dword [ebx + ebp]
mov eax, dword [esp + 0x54]
cmp edi, eax
jae 0x404657
test ecx, ecx
jne 0x404657
mov eax, esi
mov ebx, edx
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp]
shr eax, cl
mov edx, dword [esp + 0xac]
movzx ecx, byte [edx + eax*2 + 4]
movzx eax, byte [edx + eax*2 + 5]
add eax, ebx
mov byte [edi], cl
inc edi
mov dword [esp + 0xc], eax
cmp eax, 0x20
mov ebx, dword [esp + 0x3c]
jbe 0x404306
mov ebx, dword [esp + 0x34]
mov edx, dword [esp]
mov ecx, dword [esp + 0xc]
cmp edi, dword [esp + 0x54]
jae 0x4043e0
mov dword [esp], edx
mov edx, dword [esp + 0xac]
mov eax, ecx
mov ebp, esi
shl esi, cl
mov ecx, dword [esp]
shr esi, cl
movzx ecx, byte [edx + esi*2 + 5]
add ecx, eax
movzx eax, byte [edx + esi*2 + 4]
mov esi, ebp
mov byte [edi], al
inc edi
cmp edi, dword [esp + 0x54]
jb 0x4043be
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x60]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x7c]
cmp eax, 0x21
jb 0x404412
mov eax, dword [esp + 0x18]
neg eax
and eax, 0x1f
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0xac]
jmp 0x4045a7
mov ecx, dword [esp + 0x18]
neg ecx
and ecx, 0x1f
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0xac]
mov esi, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0xc], ecx
cmp esi, ecx
jae 0x404487
mov ebp, dword [esp + 0x84]
mov edx, esi
sub edx, ebp
je 0x404507
mov dword [esp], esi
mov esi, eax
shr esi, 3
mov edi, dword [esp]
sub edi, esi
cmp edi, ebp
mov edi, dword [esp + 0xac]
mov ecx, 0
setb cl
cmovb esi, edx
mov edx, ecx
sub dword [esp], esi
mov ecx, dword [esp]
mov dword [esp + 0x80], ecx
shl esi, 3
sub eax, esi
mov esi, dword [esp]
jmp 0x40449a
mov ecx, eax
shr ecx, 3
sub esi, ecx
mov dword [esp + 0x80], esi
and eax, 7
xor edx, edx
mov dword [esp + 0x7c], eax
mov ecx, esi
mov esi, dword [esi]
mov dword [esp + 0x78], esi
cmp ebx, dword [esp + 0x64]
jae 0x4044fc
test edx, edx
jne 0x4044fc
mov edx, esi
mov ecx, eax
shl edx, cl
mov ebp, ebx
mov ebx, dword [esp + 0x18]
mov ecx, ebx
shr edx, cl
mov ch, byte [edi + edx*2 + 4]
movzx edx, byte [edi + edx*2 + 5]
add edx, eax
mov cl, dl
shl esi, cl
mov cl, bl
mov ebx, ebp
shr esi, cl
mov byte [ebp], ch
movzx ecx, byte [edi + esi*2 + 4]
movzx eax, byte [edi + esi*2 + 5]
add eax, edx
mov dword [esp + 0x7c], eax
mov byte [ebp + 1], cl
add ebx, 2
cmp eax, 0x21
jb 0x404426
jmp 0x4045a7
cmp eax, 0x20
mov esi, ecx
ja 0x4045a7
cmp esi, dword [esp + 0xc]
jae 0x404558
mov ebp, dword [esp + 0x84]
mov edx, esi
sub edx, ebp
je 0x4045a7
mov dword [esp], esi
mov esi, eax
shr esi, 3
mov edi, dword [esp]
sub edi, esi
cmp edi, ebp
mov edi, dword [esp + 0xac]
mov ecx, 0
setb cl
cmovb esi, edx
mov edx, ecx
sub dword [esp], esi
mov ecx, dword [esp]
mov dword [esp + 0x80], ecx
shl esi, 3
sub eax, esi
mov esi, dword [esp]
jmp 0x40456b
mov ecx, eax
shr ecx, 3
sub esi, ecx
mov dword [esp + 0x80], esi
and eax, 7
xor edx, edx
mov ecx, eax
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
mov dword [esp + 0x78], eax
cmp ebx, dword [esp + 0x4c]
jae 0x4045a7
test edx, edx
jne 0x4045a7
mov edx, ecx
shl eax, cl
mov ecx, dword [esp + 0x18]
shr eax, cl
movzx ecx, byte [edi + eax*2 + 4]
movzx eax, byte [edi + eax*2 + 5]
add eax, edx
mov dword [esp + 0x7c], eax
mov byte [ebx], cl
inc ebx
cmp eax, 0x20
jbe 0x404507
mov esi, dword [esp + 0x4c]
cmp ebx, esi
mov ebp, dword [esp + 0x18]
jae 0x4045da
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, eax
shl edx, cl
mov ecx, ebp
shr edx, cl
movzx ecx, byte [edi + edx*2 + 4]
movzx edx, byte [edi + edx*2 + 5]
add edx, eax
mov dword [esp + 0x7c], edx
mov byte [ebx], cl
inc ebx
cmp ebx, esi
jb 0x4045b3
mov eax, dword [esp + 0x2c]
xor eax, 6
mov edx, dword [esp + 0x14]
xor edx, 0x20
or edx, eax
mov eax, dword [esp + 4]
xor eax, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
xor esi, 0x20
or esi, eax
mov eax, dword [esp + 8]
xor eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
xor edi, 0x20
or edi, eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
xor ecx, dword [esp + 0x84]
xor eax, 0x20
or eax, ecx
or eax, edi
or eax, esi
or eax, edx
mov ebp, 0xffffffec
cmove ebp, dword [esp + 0x60]
jmp 0x403d44
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov esi, dword [esp + 4]
jb 0x40416c
jmp 0x4041b1
cmp edi, eax
mov ebx, dword [esp + 0x34]
mov ecx, edx
mov edx, dword [esp]
jb 0x4043b4
jmp 0x4043e0