Function at 0x40d040
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x24], 0
je 0x40d063
mov eax, dword [ecx]
jmp 0x40d0ac
xor eax, eax
mov dword [ecx], eax
mov byte [ecx + 0x28], 0
mov dword [ecx + 4], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x18], eax
pxor xmm0, xmm0
movdqu xmmword [ecx + 0x48], xmm0
movdqu xmmword [ecx + 0x58], xmm0
movdqu xmmword [ecx + 0x68], xmm0
movdqu xmmword [ecx + 0x78], xmm0
movdqu xmmword [ecx + 0x88], xmm0
movdqu xmmword [ecx + 0x98], xmm0
mov dword [ecx + 0xa8], eax
mov dword [ecx + 0xac], 0xc
mov esi, dword [ebx + 4]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], esi
mov dword [ecx + 0x10], esi
lea edx, [ecx + 0xb0]
mov dword [ebp - 0x34], edx
add ecx, 0x48
mov dword [ebp - 0x28], ecx
cmp eax, 9
ja case.default.0x40d0cf
jmp dword [eax*4 + 0x437c0c]
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
sub edx, eax
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0xa8]
mov esi, dword [edi + 0xac]
sub esi, ecx
cmp edx, esi
cmovb esi, edx
add ecx, dword [ebp - 0x34]
add eax, dword [ebx]
push esi
push eax
push ecx
call fcn.00424140
add esp, 0xc
add dword [ebx + 4], esi
add esi, dword [edi + 0xa8]
xor ecx, ecx
cmp esi, dword [edi + 0xac]
cmove esi, ecx
mov dword [edi + 0xa8], esi
jne 0x40dfe2
mov esi, dword [ebp + 8]
mov dword [esi], 1
mov eax, dword [esi + 0xb0]
mov ecx, 0x587a37fd
xor eax, ecx
movzx ecx, word [esi + 0xb4]
xor ecx, 0x5a
or ecx, eax
jne 0x40e06b
movzx eax, byte [esi + 0xb6]
mov dword [ebp - 0x1c], eax
mov edi, 0xff
xor eax, edi
mov edx, dword [eax*4 + 0x442700]
movzx eax, byte [esi + 0xb7]
mov esi, edx
and esi, edi
mov edi, eax
mov ecx, 0xff
xor edi, ecx
xor edi, esi
shr edx, 8
xor edx, dword [edi*4 + 0x442700]
mov esi, dword [ebp + 8]
xor edx, 0xffff0000
cmp dword [esi + 0xb8], edx
jne 0x40dfdd
cmp byte [ebp - 0x1c], 0
jne 0x40dce6
mov dword [esi + 0x20], eax
cmp al, 4
ja 0x40dce6
mov ecx, 0x13
bt ecx, eax
mov ecx, 6
jae 0x40dfe2
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x40dfd6
mov ecx, dword [ebx]
movzx ecx, byte [ecx + eax]
test ecx, ecx
je 0x40d36e
lea edi, [ecx*4 + 4]
mov esi, dword [ebp + 8]
mov dword [esi + 0x40], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xa8], 0
mov dword [esi], 2
xor eax, eax
jmp 0x40d211
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xa8]
mov edi, dword [esi + 0xac]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
sub edx, ecx
sub edi, eax
cmp edx, edi
cmovb edi, edx
add eax, dword [ebp - 0x34]
add ecx, dword [ebx]
push edi
push ecx
push eax
call fcn.00424140
add esp, 0xc
add dword [ebx + 4], edi
add edi, dword [esi + 0xa8]
xor ecx, ecx
cmp edi, dword [esi + 0xac]
mov eax, edi
cmove eax, ecx
mov dword [esi + 0xa8], eax
jne 0x40dfe2
xor eax, eax
dec eax
add edi, 0xfffffffc
mov ebx, edi
mov edi, dword [ebp + 8]
mov dword [edi + 0xac], ebx
mov edi, dword [ebp - 0x34]
je 0x40d285
xor ecx, ecx
xor eax, eax
dec eax
movzx edx, byte [edi + ecx]
movzx esi, al
xor esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x442700]
inc ecx
cmp ebx, ecx
jne 0x40d26d
not eax
mov ecx, 7
mov dword [ebp - 0x24], ebx
cmp dword [edi + ebx], eax
jne 0x40e063
mov esi, dword [ebp + 8]
mov dword [esi + 0xa8], 2
movzx ecx, byte [esi + 0xb1]
test cl, 0x3e
mov ebx, dword [ebp + 0xc]
jne 0x40dce6
test cl, 0x40
mov dword [ebp - 0x30], ecx
jne 0x40d2de
mov dword [ebp - 0x18], 2
xor esi, esi
dec esi
mov edi, esi
jmp 0x40d3a1
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov edi, dword [ebp + 8]
jmp 0x40da7f
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x40d2ed
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x24]
cmp eax, 3
mov edx, 2
cmovae edx, eax
add edx, 0xfffffffe
mov dword [ebp - 0x20], edx
xor edx, edx
cmp dword [ebp - 0x20], edx
je 0x40dfdd
mov al, byte [esi + edx + 0xb2]
mov byte [ebp - 0x1c], al
mov ebx, edx
mov edx, eax
and dl, 0x7f
mov eax, esi
movzx edi, dl
xor esi, esi
shld esi, edi, cl
mov dword [ebp - 0x18], ebx
add ebx, 3
mov dword [eax + 0xa8], ebx
shl edi, cl
test cl, 0x20
cmovne esi, edi
mov edx, 0
cmovne edi, edx
or esi, dword [eax + 0xc]
or edi, dword [eax + 8]
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
cmp byte [ebp - 0x1c], 0
jns 0x40d384
add ecx, 7
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x18]
inc edx
cmp ecx, 0x3f
mov ebx, dword [ebp + 0xc]
mov esi, eax
jne 0x40d303
jmp 0x40dfdd
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov eax, 6
jmp 0x40db2e
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp + 0xc]
jne 0x40d394
test ecx, ecx
jne 0x40dfdd
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], esi
test cl, cl
js 0x40d3d5
xor edi, edi
dec edi
mov eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edi
mov eax, dword [ebp - 0x30]
and al, 1
mov byte [ecx + 0x4b8], al
jne 0x40d471
mov edx, dword [ebp - 0x24]
jmp 0x40d4dc
mov edi, eax
mov esi, dword [eax + 4]
test esi, esi
mov ecx, 7
jne 0x40d3eb
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov edx, dword [ebp - 0x24]
cmp dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmova edx, eax
mov dword [ebp - 0x20], edx
add esi, 7
cmp dword [ebp - 0x20], eax
je 0x40dfe2
lea ecx, [esi - 7]
mov dl, byte [edi + eax + 0xb0]
mov byte [ebp - 0x1c], dl
mov ebx, eax
mov eax, edx
and al, 0x7f
movzx eax, al
mov edx, edi
xor edi, edi
shld edi, eax, cl
shl eax, cl
test cl, 0x20
mov dword [ebp - 0x18], ebx
lea ecx, [ebx + 1]
mov dword [edx + 0xa8], ecx
cmovne edi, eax
mov ebx, 0
cmovne eax, ebx
or edi, dword [edx + 0xc]
or eax, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [edx + 0xc], edi
cmp byte [ebp - 0x1c], 0
jns 0x40d7f3
mov dword [edx + 4], esi
add esi, 7
mov eax, ecx
cmp esi, 0x46
mov ebx, dword [ebp + 0xc]
mov edi, edx
mov ecx, 7
jne 0x40d3fd
jmp 0x40dfe2
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
sub eax, edx
cmp eax, 2
jb 0x40dce6
lea eax, [edx + 1]
mov dword [ecx + 0xa8], eax
cmp byte [ecx + edx + 0xb0], 4
jne 0x40dce6
mov eax, dword [ecx + 0x4b4]
mov dword [eax], 4
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov eax, dword [ecx + 0xa8]
lea edx, [eax + 1]
mov dword [ebp - 0x18], edx
mov dword [ecx + 0xa8], edx
cmp byte [ecx + eax + 0xb0], 0
jne 0x40dce6
mov edx, dword [ecx + 0xac]
mov eax, edx
mov esi, dword [ebp - 0x18]
sub eax, esi
cmp eax, 2
jb 0x40dfdd
lea eax, [esi + 1]
mov dword [ecx + 0xa8], eax
cmp byte [ecx + esi + 0xb0], 0x21
jne 0x40dce6
lea eax, [esi + 2]
mov dword [ecx + 0xa8], eax
cmp byte [ecx + esi + 0xb1], 1
jne 0x40dce6
cmp edx, eax
mov ecx, 7
je 0x40dfe2
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + 3]
mov edi, dword [ebp + 8]
mov dword [edi + 0xa8], eax
movzx ecx, byte [edi + ecx + 0xb2]
cmp ecx, 0x27
ja 0x40dce6
mov eax, ecx
and eax, 1
or eax, 2
shr ecx, 1
add cl, 0xb
shl eax, cl
mov esi, dword [edi + 0x4b0]
mov dword [esi + 0x30], eax
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40d59d
cmp eax, dword [esi + 0x34]
ja 0x40e075
mov dword [esi + 0x2c], eax
cmp ecx, 2
jne 0x40d59d
cmp dword [esi + 0x38], eax
jae 0x40d59d
push dword [esi + 0x18]
call fcn.0041fc39
add esp, 4
push dword [esi + 0x30]
call fcn.00420172
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x40e08e
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x40], eax
mov byte [esi + 0x50], 1
mov dword [esi + 0x6ee4], eax
mov ecx, dword [edi + 0xa8]
mov eax, dword [edi + 0xac]
cmp eax, ecx
cmovbe eax, ecx
cmp eax, ecx
je 0x40d5de
lea edx, [ecx + 1]
mov dword [edi + 0xa8], edx
cmp byte [edi + ecx + 0xb0], 0
mov ecx, edx
je 0x40d5c0
jmp 0x40dce6
mov dword [edi + 0xa8], 0
mov eax, dword [ebp - 0x28]
pxor xmm0, xmm0
movdqu xmmword [eax], xmm0
mov dword [edi], 3
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x14], eax
cmp byte [esi + 0x4b8], 0
mov ecx, dword [esi + 0x4b0]
je 0x40d687
mov dword [ebp - 0x1c], ecx
mov edi, dword [esi + 0x4b4]
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x40d693
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
sub esi, eax
cmp ecx, esi
cmovb esi, ecx
add eax, dword [ebx + 0xc]
lea ecx, [edi + 0x28]
mov dword [ebp - 0x20], ecx
push esi
push ecx
push eax
call fcn.00424140
add esp, 0xc
add dword [ebx + 0x10], esi
mov ebx, dword [edi + 0x24]
sub ebx, esi
sub dword [edi + 0x20], esi
mov dword [edi + 0x24], ebx
lea eax, [edi + esi + 0x28]
setne byte [ebp - 0x24]
push ebx
push eax
push dword [ebp - 0x20]
call fcn.00424140
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x24], 0
jne 0x40d864
cmp dword [edi + 4], 1
mov eax, 1
jne 0x40d696
jmp 0x40d864
mov edx, ebx
call fcn.0040c660
jmp 0x40d86a
mov ebx, dword [edi + 0x24]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x10]
test ebx, ebx
je 0x40d745
mov ecx, dword [edi + 0x14]
mov edx, ecx
sub edx, esi
cmp ebx, edx
jb 0x40d745
mov edi, dword [ebp - 0x18]
cmp esi, ecx
jae 0x40d861
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x1c], eax
lea ebx, [edi + 0x28]
mov dword [esi + 0xc], ebx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x10
mov ecx, dword [ebp - 0x1c]
mov edx, esi
call fcn.0040c660
mov dword [edi + 4], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 4]
cmp eax, 1
ja 0x40d864
lea esi, [edi + 0x20]
mov ecx, edi
mov dword [ebp - 0x1c], ebx
mov edx, ebx
push dword [edi + 0x24]
push esi
call fcn.0040ceb0
add esp, 8
cmp dword [edi + 4], 1
jne 0x40d813
mov eax, dword [edi + 0x24]
mov dword [edi + 0x20], eax
jmp 0x40d815
mov dword [ebp - 0x14], esi
add esi, dword [edi + 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [edi + 0x28]
push ebx
mov dword [ebp - 0x20], eax
push eax
push esi
call fcn.00424140
add esp, 0xc
mov eax, dword [edi + 0x24]
mov edx, dword [ebp + 0xc]
add dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x1c]
call fcn.0040c660
mov dword [edi + 4], eax
cmp eax, 1
je 0x40d78c
test eax, eax
jne 0x40d864
xor eax, eax
cmp byte [edi + 8], 0
jne 0x40d864
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov ecx, edi
push dword [eax + 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0040ceb0
add esp, 8
cmp dword [edi + 4], 1
mov eax, 1
je 0x40d864
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebp - 0x14]
mov dword [edi + 0x24], eax
mov ecx, dword [ebx + 0x10]
sub ecx, eax
mov dword [ebx + 0x10], ecx
add ecx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 0x24]
push edi
push ecx
push dword [ebp - 0x20]
call fcn.00424140
add esp, 0xc
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
add edi, esi
xor eax, eax
cmp edi, ecx
mov edi, dword [ebp - 0x18]
jae 0x40d6b9
jmp 0x40d864
mov ebx, dword [ebp + 0xc]
jne 0x40d801
cmp esi, 7
jne 0x40dfdd
inc dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
jmp 0x40d3b3
mov eax, dword [esi]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
sub esi, ecx
cmp eax, esi
cmovb esi, eax
add ecx, dword [edi + 0xc]
push esi
mov ebx, dword [ebp - 0x1c]
push ebx
push ecx
call fcn.00424140
add esp, 0xc
add dword [edi + 0x10], esi
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 0x24]
sub eax, esi
sub dword [edi + 0x20], esi
lea ecx, [ebx + esi]
mov dword [edi + 0x24], eax
setne byte [ebp - 0x20]
push eax
push ecx
push ebx
call fcn.00424140
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x20], 0
jne 0x40d864
mov eax, dword [edi + 4]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, eax
mov eax, dword [ebx + 4]
sub eax, dword [esi + 0x10]
mov edx, dword [esi + 0x4c]
add eax, dword [esi + 0x48]
mov dword [ebp - 0x18], eax
adc edx, 0
mov dword [ebp - 0x20], edx
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edx
mov edi, dword [ebx + 0x10]
mov ebx, dword [esi + 0x14]
sub edi, ebx
mov edx, dword [esi + 0x54]
add edi, dword [esi + 0x50]
adc edx, 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x40], eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edx
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x40], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x50], eax
sbb eax, dword [ebp - 0x20]
jb 0x40e05e
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
sbb eax, edx
jb 0x40e05e
mov eax, dword [esi + 0x20]
cmp eax, 4
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x4c], eax
je 0x40d920
cmp eax, 1
jne 0x40d97a
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x18]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
not ecx
cmp eax, ebx
je 0x40d91a
mov esi, dword [edx + 0xc]
movzx edi, byte [esi + ebx]
movzx edx, cl
xor edx, edi
shr ecx, 8
xor ecx, dword [edx*4 + 0x442700]
inc ebx
cmp eax, ebx
jne 0x40d902
not ecx
xor esi, esi
jmp 0x40d96b
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 0x1c]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x10]
not esi
not ecx
cmp edx, ebx
je 0x40d967
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, edx
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx + ebx]
movzx edi, cl
shrd ecx, esi, 8
xor edi, edx
mov edx, eax
shr esi, 8
xor ecx, dword [edi*8 + 0x442b00]
xor esi, dword [edi*8 + 0x442b04]
inc ebx
cmp eax, ebx
jne 0x40d93d
not ecx
not esi
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], esi
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x3c]
cmp ecx, 1
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x20]
jne 0x40dfe2
mov ecx, dword [ebp - 0x40]
mov eax, ecx
mov edx, dword [ebp - 0x50]
and eax, edx
cmp eax, 0xffffffff
je 0x40d9a5
xor ecx, dword [ebp - 0x18]
xor edx, esi
or edx, ecx
jne 0x40dfdd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
mov edx, dword [ebp - 0x4c]
je 0x40d9cb
mov eax, dword [ebp - 0x24]
xor eax, edi
mov ecx, dword [ebp - 0x30]
xor ecx, dword [ebp - 0x38]
or ecx, eax
mov ecx, 7
jne 0x40dfe2
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x40]
add ecx, dword [ebp - 0x18]
adc esi, 0
add ecx, dword [edi + 0x60]
adc esi, dword [edi + 0x64]
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], esi
xor eax, eax
cmp edx, 1
je 0x40d9f9
cmp edx, 4
jne 0x40da0c
mov dword [ebp - 0x20], esi
mov esi, 8
jmp 0x40da01
mov dword [ebp - 0x20], esi
mov esi, 4
add esi, ecx
adc eax, dword [ebp - 0x20]
mov dword [edi + 0x60], esi
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x3c]
add dword [edi + 0x68], eax
mov eax, dword [ebp - 0x38]
adc dword [edi + 0x6c], eax
mov eax, dword [edi + 0x70]
not eax
mov ecx, 0x60
movzx edx, byte [edi + ecx]
movzx esi, al
xor esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x442700]
inc ecx
cmp ecx, 0x78
jne 0x40da22
not eax
mov dword [edi + 0x70], eax
add dword [edi + 0x58], 1
adc dword [edi + 0x5c], 0
mov dword [edi], 4
mov eax, dword [ebp - 0x18]
jmp 0x40da7f
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x40dfd6
mov ecx, dword [ebx]
lea edx, [eax + 1]
mov dword [ebx + 4], edx
cmp byte [ecx + eax], 0
jne 0x40dfdd
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
add eax, 1
adc dword [ecx + 4], 0
mov dword [ecx], eax
test al, 3
jne 0x40da53
mov dword [edi], 5
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x20]
cmp ecx, 1
je 0x40dae1
xor eax, eax
inc eax
cmp ecx, 4
jne 0x40db2e
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x40dfd6
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov cl, byte [edi + 4]
shrd esi, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, esi
mov ecx, dword [ebx]
lea esi, [eax + 1]
mov dword [ebx + 4], esi
cmp byte [ecx + eax], dl
jne 0x40dfdd
mov eax, dword [edi + 4]
add eax, 8
mov dword [edi + 4], eax
cmp eax, 0x40
jb 0x40daa0
jmp 0x40db20
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x40dfd6
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov cl, byte [edi + 4]
shrd esi, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, esi
mov ecx, dword [ebx]
lea esi, [eax + 1]
mov dword [ebx + 4], esi
cmp byte [ecx + eax], dl
jne 0x40dfdd
mov eax, dword [edi + 4]
add eax, 8
mov dword [edi + 4], eax
cmp eax, 0x20
jb 0x40dae1
xor eax, eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
mov dword [edi + 4], eax
xor eax, eax
inc eax
mov dword [edi], eax
jmp case.default.0x40d0cf
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
sete cl
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x28], eax
test cl, 1
je 0x40db5a
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebp - 0x28]
jae 0x40dcf0
mov edx, ebx
mov eax, dword [ebp - 0x1c]
mov bl, byte [eax + ecx]
inc ecx
mov dword [edx + 4], ecx
mov ecx, ebx
and cl, 0x7f
movzx edx, cl
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
xor esi, esi
shld esi, edx, cl
shl edx, cl
test cl, 0x20
cmovne esi, edx
mov eax, 0
cmovne edx, eax
or esi, dword [edi + 0xc]
or edx, dword [edi + 8]
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
test bl, bl
jns 0x40dbb8
add ecx, 7
mov dword [edi + 4], ecx
cmp ecx, 0x3f
mov ebx, dword [ebp + 0xc]
jne 0x40db5a
jmp 0x40dcfc
jne 0x40dbc2
test ecx, ecx
jne 0x40e07f
mov dword [edi + 4], 0
mov eax, dword [edi + 0x78]
cmp eax, 2
mov ebx, dword [ebp + 0xc]
je 0x40dc04
cmp eax, 1
je 0x40dc66
test eax, eax
jne 0x40dc79
mov dword [edi + 0x88], edx
mov dword [edi + 0x8c], esi
mov eax, dword [edi + 0x58]
xor eax, edx
mov ecx, dword [edi + 0x5c]
xor ecx, esi
or ecx, eax
je 0x40dc5d
jmp 0x40dfdd
add dword [edi + 0x98], edx
adc dword [edi + 0x9c], esi
mov eax, dword [edi + 0xa0]
not eax
xor ecx, ecx
movzx edx, byte [edi + ecx + 0x90]
movzx esi, al
xor esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x442700]
inc ecx
cmp ecx, 0x18
jne 0x40dc1a
not eax
mov dword [edi + 0xa0], eax
mov edx, dword [edi + 0x88]
mov esi, dword [edi + 0x8c]
add edx, 0xffffffff
adc esi, 0xffffffff
mov dword [edi + 0x88], edx
mov dword [edi + 0x8c], esi
mov dword [edi + 0x78], 1
jmp 0x40dc85
add dword [edi + 0x90], edx
adc dword [edi + 0x94], esi
mov dword [edi + 0x78], 2
mov edx, dword [edi + 0x88]
mov esi, dword [edi + 0x8c]
mov cl, 1
or edx, esi
jne 0x40db3f
mov dword [edi], 7
mov eax, dword [ebx + 4]
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x10]
mov edx, eax
sub edx, ecx
add edx, dword [edi + 0x80]
mov esi, dword [edi + 0x84]
adc esi, 0
test dl, 3
je 0x40dd57
cmp eax, dword [ebx + 8]
je 0x40df95
mov ecx, dword [ebx]
lea edx, [eax + 1]
mov dword [ebx + 4], edx
cmp byte [ecx + eax], 0
mov eax, edx
je 0x40dc9b
jmp 0x40dfdd
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xac]
jmp 0x40de3d
mov ecx, 6
jmp 0x40dfe2
mov dword [ebp - 0x2c], 0
mov edi, dword [ebp + 8]
jmp 0x40dd03
mov dword [ebp - 0x2c], 7
mov ecx, dword [ebx + 4]
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
mov esi, ecx
sub esi, edx
add dword [edi + 0x80], esi
adc dword [edi + 0x84], 0
test esi, esi
je 0x40dd45
not eax
mov esi, dword [ebx]
movzx edi, byte [esi + edx]
movzx ebx, al
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x442700]
inc edx
cmp ecx, edx
jne 0x40dd25
not eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
mov ecx, dword [ebp - 0x2c]
jmp 0x40dfe2
mov dword [edi + 0x80], edx
mov dword [edi + 0x84], esi
mov edx, dword [edi + 0x18]
cmp eax, ecx
je 0x40dd8e
not edx
mov esi, dword [ebx]
movzx edi, byte [esi + ecx]
movzx ebx, dl
xor ebx, edi
shr edx, 8
xor edx, dword [ebx*4 + 0x442700]
inc ecx
cmp eax, ecx
jne 0x40dd6e
not edx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], 0
movdqu xmm0, xmmword [edi + 0x90]
movdqu xmm1, xmmword [edi + 0x60]
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [edi + 0x68]
movdqu xmm2, xmmword [edi + 0x98]
pcmpeqb xmm2, xmm0
pand xmm2, xmm1
pmovmskb eax, xmm2
mov ecx, 7
cmp eax, 0xffff
jne 0x40dfe2
mov eax, dword [ebp + 8]
mov dword [eax], 8
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x40dfd6
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov cl, byte [edi + 4]
shrd esi, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, esi
mov ecx, dword [ebx]
lea esi, [eax + 1]
mov dword [ebx + 4], esi
cmp byte [ecx + eax], dl
jne 0x40dfdd
mov eax, dword [edi + 4]
add eax, 8
mov dword [edi + 4], eax
cmp eax, 0x20
jb 0x40ddde
xor eax, eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
mov dword [edi + 4], eax
mov dword [edi + 0xac], 0xc
mov dword [edi], 9
mov esi, 0xc
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
sub ecx, eax
mov edx, dword [edi + 0xa8]
sub esi, edx
cmp ecx, esi
cmovb esi, ecx
mov ecx, dword [ebp - 0x34]
add ecx, edx
add eax, dword [ebx]
push esi
push eax
push ecx
call fcn.00424140
add esp, 0xc
add dword [ebx + 4], esi
add esi, dword [edi + 0xa8]
xor ecx, ecx
cmp esi, dword [edi + 0xac]
cmove esi, ecx
mov dword [edi + 0xa8], esi
jne 0x40dfe2
mov edi, dword [ebp + 8]
movzx eax, word [edi + 0xba]
mov ecx, 7
cmp eax, 0x5a59
jne 0x40dfe2
movzx ecx, byte [edi + 0xb4]
mov eax, 0xff
mov dword [ebp - 0x28], ecx
xor ecx, eax
mov ebx, 0xffffff
xor ebx, dword [ecx*4 + 0x442700]
movzx ecx, byte [edi + 0xb5]
mov edx, ebx
and edx, eax
mov dword [ebp - 0x1c], ecx
xor edx, ecx
shr ebx, 8
xor ebx, dword [edx*4 + 0x442700]
mov esi, ebx
and esi, eax
movzx ecx, byte [edi + 0xb6]
mov dword [ebp - 0x18], ecx
xor esi, ecx
shr ebx, 8
xor ebx, dword [esi*4 + 0x442700]
mov ecx, edi
mov edi, ebx
and edi, eax
movzx esi, byte [ecx + 0xb7]
xor edi, esi
shr ebx, 8
xor ebx, dword [edi*4 + 0x442700]
mov edi, ebx
and edi, eax
movzx edx, byte [ecx + 0xb8]
mov dword [ebp - 0x34], edx
xor edi, edx
shr ebx, 8
xor ebx, dword [edi*4 + 0x442700]
and eax, ebx
movzx edi, byte [ecx + 0xb9]
xor eax, edi
shr ebx, 8
xor ebx, dword [eax*4 + 0x442700]
not ebx
cmp dword [ecx + 0xb0], ebx
jne 0x40dfda
mov eax, dword [ebp - 0x1c]
shl eax, 8
mov edx, dword [ebp - 0x18]
shl edx, 0x10
or edx, eax
shl esi, 0x18
or esi, edx
mov eax, dword [ecx + 0x80]
add esi, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x84]
shrd eax, ecx, 2
xor esi, eax
shr ecx, 2
or esi, ecx
mov ebx, dword [ebp + 0xc]
jne 0x40dfdd
cmp byte [ebp - 0x34], 0
mov ecx, 7
jne 0x40dfe2
xor eax, eax
inc eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20], edi
mov ecx, 7
cmove ecx, eax
jmp 0x40dfe2
mov dword [edi + 0x80], edx
mov dword [edi + 0x84], esi
mov edx, dword [edi + 0x18]
cmp eax, ecx
je 0x40dfcc
not edx
mov esi, dword [ebx]
movzx edi, byte [esi + ecx]
movzx ebx, dl
xor ebx, edi
shr edx, 8
xor edx, dword [ebx*4 + 0x442700]
inc ecx
cmp eax, ecx
jne 0x40dfac
not edx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], 0
xor ecx, ecx
jmp 0x40dfe2
mov ebx, dword [ebp + 0xc]
mov ecx, 7
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
je 0x40e01b
mov esi, ecx
test ecx, ecx
jne 0x40e015
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebx + 4]
jne 0x40e015
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebx + 0x10]
jne 0x40e015
xor ecx, ecx
cmp byte [eax + 0x28], 0
setne cl
shl ecx, 3
mov esi, ecx
mov byte [eax + 0x28], 1
jmp 0x40e04a
mov byte [eax + 0x28], 0
jmp 0x40e04a
cmp ecx, 1
je 0x40e048
test ecx, ecx
jne 0x40e038
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp eax, dword [ebx + 8]
sete cl
mov eax, 8
sub eax, ecx
mov ecx, eax
mov esi, ecx
mov eax, dword [ebp - 0x48]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x10], eax
jmp 0x40e04a
mov esi, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412e03
mov eax, esi
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 7
mov ebx, dword [ebp + 0xc]
jmp 0x40dfe2
mov ecx, 5
jmp 0x40dfe2
mov ecx, 4
jmp 0x40dfe2
mov dword [ebp - 0x2c], 7
mov ebx, dword [ebp + 0xc]
jmp 0x40dd03
mov dword [esi + 0x38], 0
mov ecx, 3
jmp 0x40dfe2