Function at 0x409db7
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x43e23d
call fcn.0041ff30
sub esp, 0x4a0
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp + 0x24]
mov ecx, 0x4936de
push eax
push ebx
push dword [ebx + 0x816]
call fcn.00412a1e
cmp eax, 0xffffffff
jne 0x409e03
cmp dword [ebp + 0x24], 0x2746
jne 0x409df7
xor eax, eax
jmp 0x409e03
cmp dword [ebp + 0x24], 0
je 0x409e03
cmp byte [ebx + 4], 0
je 0x409e3d
cmp byte [ebx + 4], 0
jne 0x409e4c
test eax, eax
jg 0x409dd0
xor ecx, ecx
xorps xmm0, xmm0
mov dword [ebp + 0x40], ecx
lea ecx, [ebx + 0x7e9]
movlpd qword [ebp + 0x28], xmm0
call fcn.004099b7
mov esi, eax
test esi, esi
je 0x409f60
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x4c], eax
jmp 0x409e63
mov eax, dword [ebx]
mov ecx, ebx
push 0
push 0
mov byte [ebx + 4], 1
call dword [eax + 0x24]
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x64
leave
ret
mov eax, dword [ebp + 0x4c]
cmp dword [esi + 0x25], 0
jne 0x409f06
or eax, ecx
jne 0x409e80
call fcn.004023db
mov ecx, edx
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x44], ecx
jmp 0x409e83
mov eax, dword [ebp + 0x4c]
push ecx
push eax
movzx eax, byte [esi + 0x13]
lea edi, [esi + 0xd]
push 1
push eax
mov eax, dword [edi]
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [edi + 4]
mov word [ecx + 4], ax
mov ecx, ebx
movzx eax, byte [esi + 0xc]
push eax
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
push dword [esi + 0x21]
call fcn.0040b30e
test al, al
jne 0x409ec6
push 1
push dword [esi + 0x21]
call fcn.0041ff7f
pop ecx
pop ecx
cmp dword [esi + 0x14], 0
je 0x409f27
push 0x43fec0
mov ecx, edi
call fcn.00402811
test al, al
je 0x409f27
mov eax, dword [edi]
push 1
push 1
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [edi + 4]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00407b9b
test eax, eax
je 0x409f27
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x7ee], ecx
jmp 0x409f27
movzx eax, byte [esi + 0xc]
push eax
mov eax, dword [esi + 0xd]
push 1
push 0
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [esi + 0x11]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00406ef6
mov eax, dword [ebx + 0x7f1]
lea ecx, [ebx + 0x7e9]
inc dword [ebx + 0x7f9]
mov byte [eax + 0x29], 0
mov eax, dword [ebx + 0x7f1]
mov eax, dword [eax + 0x2a]
mov dword [ebx + 0x7f1], eax
call fcn.004099b7
mov ecx, dword [ebp + 0x44]
mov esi, eax
test esi, esi
jne 0x409e60
jmp 0x409f6c
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x4c], eax
lea ecx, [ebx + 0x3b9]
call fcn.004099d1
mov esi, eax
mov dword [ebp + 0x3c], esi
mov edi, esi
test esi, esi
je 0x40a105
mov eax, dword [ebp + 0x4c]
or eax, dword [ebp + 0x44]
jne 0x409fb0
call fcn.004023db
push 0
mov ecx, eax
mov eax, edx
push 0x3e8
push eax
push ecx
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x44], eax
call fcn.00420130
mov dword [ebp + 0x40], eax
jmp 0x409fb3
mov eax, dword [ebp + 0x40]
cmp dword [edi + 6], eax
jae 0x40a0e6
mov al, byte [edi + 0xa]
mov ecx, edi
push 0x43fec0
mov byte [ebp + 0x53], al
call fcn.004027f4
mov cl, byte [ebp + 0x53]
dec al
neg al
sbb al, al
inc al
mov byte [ebp + 0x58], al
cmp cl, 6
je 0x40a05c
test al, al
jne 0x40a05c
mov eax, dword [ebp + 0x40]
xor ecx, ecx
inc byte [edi + 0xa]
add eax, 0x3e8
mov dword [edi + 6], eax
mov byte [ebp + 0x48], 0x18
mov dword [ebp + 0x34], ecx
cmp dword [ebx + 0x3b1], ecx
jbe 0x40a03a
mov eax, dword [ebx + 0x3ad]
mov ecx, dword [eax + ecx*4]
mov eax, dword [edi]
push ecx
push ecx
mov esi, dword [ecx]
mov edx, esp
push 0x18
mov dword [edx], eax
mov ax, word [edi + 4]
mov word [edx + 4], ax
lea eax, [ebp + 0x48]
push eax
call dword [esi + 0x1c]
mov ecx, dword [ebp + 0x34]
inc ecx
mov dword [ebp + 0x34], ecx
cmp ecx, dword [ebx + 0x3b1]
jb 0x40a004
mov esi, dword [ebp + 0x3c]
movzx eax, word [edi + 4]
mov ecx, 0x4936de
push eax
push dword [edi]
lea eax, [ebp + 0x48]
push 3
push eax
push dword [ebx + 0x816]
call fcn.00412aa6
jmp 0x40a0e6
cmp dword [edi + 0xb], 0
je 0x40a075
push dword [edi + 0xb]
call fcn.0041ff8d
and dword [edi + 0xb], 0
mov al, byte [ebp + 0x58]
pop ecx
mov cl, byte [ebp + 0x53]
cmp cl, 6
jne 0x40a0b9
test al, al
jne 0x40a0b9
cmp dword [edi + 0x112], 1
jne 0x40a0b9
push 1
call fcn.00406a16
pop ecx
push eax
mov ecx, dword [eax + 0x10]
mov byte [ecx], 0x1d
mov dword [eax + 0xc], 8
mov ecx, dword [edi]
mov dword [eax + 2], ecx
mov cx, word [edi + 4]
mov word [eax + 6], cx
mov ecx, 0xffff
mov word [eax], cx
mov ecx, ebx
call fcn.00406778
cmp edi, esi
jne 0x40a0da
lea esi, [ebx + 0x3b9]
mov ecx, esi
call fcn.004099f1
mov ecx, esi
call fcn.004099d1
mov esi, eax
mov dword [ebp + 0x3c], esi
mov edi, esi
jmp 0x40a0f3
or dword [edi], 0xffffffff
mov eax, 0xffff
mov word [edi + 4], ax
lea ecx, [ebx + 0x3b9]
call fcn.004099d1
mov edi, eax
test edi, edi
jne 0x409f86
test esi, esi
je 0x40a105
mov dword [ebx + 0x3b9], esi
xor ecx, ecx
xor eax, eax
cmp cx, word [ebx + 7]
jmp 0x40ad61
imul esi, eax, 0x7f2
add esi, dword [ebx + 0x334]
mov dword [ebp + 0x34], esi
cmp byte [esi], 0
je 0x40ad57
mov eax, dword [esi + 1]
mov dword [ebp + 0x5c], eax
mov ax, word [esi + 5]
mov word [ebp + 0x60], ax
mov eax, dword [ebp + 0x4c]
or eax, dword [ebp + 0x44]
jne 0x40a164
call fcn.004023db
push 0
mov ecx, eax
mov eax, edx
push 0x3e8
push eax
push ecx
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x44], eax
call fcn.00420130
mov edi, eax
mov dword [ebp + 0x40], edi
jmp 0x40a167
mov edi, dword [ebp + 0x40]
mov ecx, dword [esi + 0x6b8]
cmp edi, ecx
jbe 0x40a1db
mov eax, edi
sub eax, ecx
cmp eax, 0x1388
jbe 0x40a1db
cmp dword [esi + 0x7ee], 8
jne 0x40a1db
lea ecx, [esi + 0xd]
call fcn.0040d79d
xor ecx, ecx
cmp dword [eax + 0x60], ecx
jne 0x40a1d8
push dword [ebp + 0x44]
mov eax, dword [esi + 1]
push dword [ebp + 0x4c]
mov byte [ebp + 0x58], 0x17
push ecx
push ecx
push ecx
push ecx
mov edx, esp
push ecx
push 8
push 3
mov dword [edx], eax
mov ecx, ebx
mov ax, word [esi + 5]
mov word [edx + 4], ax
lea eax, [ebp + 0x58]
push 8
push eax
call fcn.0040b30e
lea ecx, [esi + 0xd]
call fcn.0040d82e
mov edi, dword [ebp + 0x40]
add eax, edi
mov dword [esi + 0x6b8], eax
jmp 0x40a1db
mov edi, dword [ebp + 0x40]
lea eax, [ebx + 0x3ad]
push eax
push dword [ebp + 0x44]
mov eax, dword [ebp + 0x5c]
lea edx, [esi + 0xd]
push dword [ebp + 0x4c]
mov dword [ebp + 0x2c], edx
push dword [ebx + 0x80d]
push ecx
push ecx
mov ecx, esp
push dword [ebx + 0x816]
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, edx
call fcn.0040f825
lea ecx, [esi + 0xd]
call fcn.0040ece8
test al, al
jne 0x40acd8
mov eax, dword [esi + 0x7ee]
cmp eax, 1
je 0x40a232
cmp eax, 2
jne 0x40a242
lea ecx, [esi + 0xd]
call fcn.0040ec97
test al, al
je 0x40acd8
cmp dword [esi + 0x7ee], 3
jne 0x40a25b
lea ecx, [esi + 0xd]
call fcn.0040c279
test al, al
je 0x40acd8
mov eax, dword [esi + 0x7ee]
cmp eax, 4
je 0x40a275
cmp eax, 5
je 0x40a275
cmp eax, 6
je 0x40a275
cmp eax, 7
jne 0x40a28e
mov ecx, dword [esi + 0x7cd]
cmp edi, ecx
jbe 0x40a28e
mov eax, edi
sub eax, ecx
cmp eax, 0x2710
ja 0x40acd8
lea ecx, [esi + 0xd]
call fcn.0040ec90
test al, al
je 0x40a2d0
push 1
call fcn.00406a16
pop ecx
push eax
mov ecx, dword [eax + 0x10]
mov dword [eax + 0xc], 8
mov byte [ecx], 0x26
mov ecx, dword [ebp + 0x5c]
mov dword [eax + 2], ecx
mov cx, word [ebp + 0x60]
mov word [eax + 6], cx
mov ecx, dword [ebp + 0x48]
mov word [eax], cx
mov ecx, ebx
call fcn.00406778
jmp 0x40ad57
cmp dword [esi + 0x7ee], 8
jne 0x40a31b
cmp edi, dword [esi + 0x6b4]
jbe 0x40a31b
cmp byte [ebx + 6], 0
jne 0x40a2f5
mov eax, 0xffff
cmp word [esi + 0x6b2], ax
jne 0x40a31b
push 1
push ecx
push ecx
mov ecx, esp
lea eax, [edi + 0x1388]
mov dword [esi + 0x6b4], eax
mov eax, dword [ebp + 0x5c]
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00408923
lea eax, [ebp + 0x54]
push eax
lea ecx, [esi + 0xd]
call fcn.0040ee63
jmp 0x40accb
lea edi, [eax + 7]
sar edi, 3
cmp dword [ebx + 0x7d1], 0
mov dword [ebp + 0x38], edi
je 0x40a435
push 0x240
lea ecx, [ebp - 0x120]
call fcn.00401166
and dword [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.0040153d
push edi
push dword [ebp + 0x54]
lea ecx, [ebp - 0x120]
call fcn.00401683
mov edi, dword [ebp - 0x120]
lea eax, [edi + 7]
sar eax, 3
add dword [ebx + 0x7dd], eax
test edi, edi
je 0x40a424
push eax
call fcn.0041ff24
mov ecx, dword [ebp - 0x120]
mov esi, eax
add ecx, 7
sar ecx, 3
push ecx
push dword [ebp - 0x114]
push esi
call fcn.004211e0
add esp, 0x10
lea ecx, [ebp - 0x120]
call fcn.0040153d
mov ecx, dword [ebx + 0x7d1]
lea eax, [ebp - 0x120]
push eax
push edi
push esi
call fcn.00401ccf
mov eax, dword [ebp - 0x120]
add eax, 7
sar eax, 3
add dword [ebx + 0x7e5], eax
push esi
call fcn.0041ff8d
mov edi, dword [ebp - 0x120]
pop ecx
lea edi, [edi + 7]
sar edi, 3
cmp edi, dword [ebp + 0x38]
jle 0x40a40c
push dword [ebp + 0x54]
call fcn.0041ff8d
push edi
call fcn.0041ff24
pop ecx
pop ecx
mov dword [ebp + 0x54], eax
jmp 0x40a40f
mov eax, dword [ebp + 0x54]
push edi
push dword [ebp - 0x114]
push eax
call fcn.004211e0
mov esi, dword [ebp + 0x34]
add esp, 0xc
jmp 0x40a426
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00401225
mov edx, dword [esi + 0x7ee]
cmp edx, 6
jne 0x40a4b7
mov eax, dword [ebp + 0x54]
cmp byte [eax], 0xb
jne 0x40a468
push edi
push eax
mov eax, dword [ebp + 0x5c]
push ecx
push ecx
mov ecx, esp
push esi
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040872a
jmp 0x40ac79
mov eax, dword [ebp + 0x5c]
push 0
push 1
push 0
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00406ef6
mov ecx, dword [ebp + 0x2c]
mov esi, dword [ebx]
call fcn.0040d82e
mov edx, dword [ebx]
push eax
mov eax, dword [ebp + 0x5c]
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call dword [edx + 0xb8]
push eax
mov ecx, ebx
call dword [esi + 0x64]
jmp 0x40ac79
mov ecx, dword [ebp + 0x54]
mov al, byte [ecx]
cmp al, 0xb
jne 0x40a4ec
cmp edx, 8
je 0x40aa60
mov eax, dword [ebp + 0x5c]
push edi
push ecx
push ecx
push ecx
mov ecx, esp
push esi
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040872a
mov ecx, dword [ebp + 0x54]
jmp 0x40aa60
cmp al, 0x1e
jne 0x40a5e9
cmp edi, 7
jne 0x40a808
cmp edx, 5
je 0x40a51d
cmp edx, edi
je 0x40a51d
lea eax, [ebx + 0x22d]
push eax
lea ecx, [ebp + 0x5c]
call fcn.004027f4
test al, al
je 0x40ac79
xor edi, edi
mov dword [esi + 0x7ee], 8
mov eax, dword [ebp + 0x5c]
inc edi
push edi
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00408923
mov eax, dword [ebp + 0x5c]
push edi
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040b5f4
push 0
push 7
push dword [ebp + 0x54]
lea ecx, [ebp - 0x120]
call fcn.004011a3
push 8
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], edi
call fcn.00401312
push edi
push 0x20
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004013d6
push edi
push 0x10
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x120]
call fcn.004013d6
mov eax, dword [ebp + 0x1c]
mov dword [esi + 7], eax
mov ax, word [ebp + 0x20]
mov word [esi + 0xb], ax
push dword [ebp + 0x54]
push 7
call fcn.00406a34
pop ecx
pop ecx
mov ecx, dword [ebp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x5c]
mov dword [eax + 2], ecx
mov cx, word [ebp + 0x60]
mov word [eax + 6], cx
mov ecx, dword [ebp + 0x48]
mov word [eax], cx
mov ecx, ebx
push eax
call fcn.00406778
lea ecx, [ebp - 0x120]
jmp 0x40a860
cmp al, 9
jne 0x40a701
cmp edi, 9
jne 0x40a808
push 0
push edi
push ecx
lea ecx, [ebp - 0x120]
call fcn.004011a3
push 8
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 2
call fcn.00401312
push 1
push 0x20
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp - 0x120]
call fcn.004013d6
push 1
push 0x20
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x120]
call fcn.004013d6
call fcn.004023db
push 0
mov ecx, eax
mov eax, edx
push 0x3e8
push eax
push ecx
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x44], eax
call fcn.00420130
mov dword [ebp + 0x40], eax
cmp eax, dword [ebp + 0x30]
jbe 0x40a66f
mov edx, eax
sub edx, dword [ebp + 0x30]
jmp 0x40a671
xor edx, edx
mov eax, dword [esi + 0x6ae]
add eax, 0x118
imul ecx, eax, 6
movzx eax, word [ecx + esi]
test eax, eax
je 0x40a696
imul eax, eax, 3
cmp edx, eax
jae 0x40a6f3
cmp edx, 0x4b0
jae 0x40a6f3
movzx edi, dx
mov word [ecx + esi], di
mov eax, dword [ebp + 0x30]
add eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0xc]
shr eax, 1
sub ecx, eax
imul eax, dword [esi + 0x6ae], 6
mov dword [eax + esi + 0x692], ecx
mov ecx, 0xffff
movzx eax, word [esi + 0x6b2]
cmp ax, cx
je 0x40a6cd
cmp eax, edx
jle 0x40a6d4
mov word [esi + 0x6b2], di
push edi
lea ecx, [esi + 0xd]
call fcn.0040f483
inc dword [esi + 0x6ae]
cmp dword [esi + 0x6ae], 5
jne 0x40a6f3
and dword [esi + 0x6ae], 0
push dword [ebp + 0x54]
call fcn.0041ff8d
pop ecx
jmp 0x40a5de
cmp al, 6
jne 0x40a7f5
cmp edi, 5
jne 0x40a808
push 0
push edi
push ecx
lea ecx, [ebp - 0x284]
call fcn.004011a3
push 8
lea ecx, [ebp - 0x284]
mov dword [ebp - 4], 3
call fcn.00401312
xor edi, edi
lea eax, [ebp + 8]
inc edi
lea ecx, [ebp - 0x284]
push edi
push 0x20
push eax
call fcn.004013d6
lea ecx, [ebp - 0x120]
call fcn.0040120a
push edi
push 8
lea eax, [ebp + 0x58]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x120]
mov byte [ebp + 0x58], 9
call fcn.0040169e
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x120]
push edi
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x38]
push 0x20
push eax
call fcn.0040169e
call fcn.0040238a
mov esi, eax
mov dword [ebp + 0x40], esi
call fcn.004023db
push edi
mov dword [ebp + 0x4c], eax
lea ecx, [ebp - 0x120]
push 0x20
lea eax, [ebp + 0x38]
mov dword [ebp + 0x44], edx
push eax
mov dword [ebp + 0x38], esi
call fcn.0040169e
mov eax, dword [ebp + 0x5c]
xor edx, edx
push edx
push esi
push edx
push edx
push ecx
push ecx
mov ecx, esp
push edx
push 6
push edx
push dword [ebp - 0x120]
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
push dword [ebp - 0x114]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040b30e
push dword [ebp + 0x54]
call fcn.0041ff8d
pop ecx
lea ecx, [ebp - 0x120]
call fcn.00401225
jmp 0x40a85a
cmp al, 0x20
jne 0x40a808
mov dword [esi + 0x7ee], 3
jmp 0x40ac79
cmp al, 0x11
jne 0x40a86e
push 0
push edi
push ecx
lea ecx, [ebp - 0x284]
call fcn.004011a3
push 8
pop edi
push edi
lea ecx, [ebp - 0x284]
mov dword [ebp - 4], 5
call fcn.00401312
push 1
push edi
lea eax, [ebp + 4]
push eax
lea ecx, [ebp - 0x284]
call fcn.00401490
push dword [ebp + 4]
lea ecx, [esi + 0x7e2]
call fcn.0041120d
push dword [ebp + 0x54]
call fcn.0041ff8d
pop ecx
lea ecx, [ebp - 0x284]
or dword [ebp - 4], 0xffffffff
call fcn.00401225
jmp 0x40acbc
cmp al, 0xa
jne 0x40a891
mov eax, dword [ebp + 0x5c]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040b5f4
jmp 0x40ac79
cmp al, 0x29
jne 0x40a8bc
lea ecx, [esi + 0x6bc]
call fcn.0040153d
lea eax, [edi - 1]
push eax
mov eax, dword [ebp + 0x54]
lea ecx, [esi + 0x6bc]
inc eax
push eax
call fcn.00401632
push dword [ebp + 0x54]
jmp 0x40ac92
cmp al, 0xf
jne 0x40a8d7
cmp edi, 0x39
jne 0x40ac84
push ecx
push esi
mov ecx, ebx
call fcn.0040ad71
jmp 0x40ac79
cmp al, 0x10
jne 0x40aa53
cmp edi, 0x35
jne 0x40ac84
lea ecx, [ebp - 0xc4]
call fcn.004113de
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 6
call fcn.004114f1
push 4
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00412755
push 2
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00412755
push 0x14
lea eax, [ebx + 0x991]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00412755
lea ecx, [ebp - 0xc4]
call fcn.00411423
mov esi, dword [ebp + 0x54]
lea ecx, [ebp - 0xc4]
call fcn.004114ed
xor edx, edx
mov ecx, dword [eax + edx*4]
cmp ecx, dword [esi + edx*4 + 1]
jne 0x40a967
inc edx
cmp edx, 5
jne 0x40a956
jmp 0x40a9d2
lea ecx, [ebp - 0xc4]
call fcn.004114f1
push 4
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00412755
push 2
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00412755
push 0x14
lea eax, [ebx + 0x9a5]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00412755
lea ecx, [ebp - 0xc4]
call fcn.00411423
mov esi, dword [ebp + 0x54]
lea ecx, [ebp - 0xc4]
call fcn.004114ed
xor edx, edx
mov ecx, dword [eax + edx*4]
cmp ecx, dword [esi + edx*4 + 1]
jne 0x40a9d6
inc edx
cmp edx, 5
jne 0x40a9c3
mov al, 1
jmp 0x40a9d8
xor al, al
test al, al
je 0x40aa36
mov esi, dword [ebp + 0x54]
lea eax, [ebp - 0x170]
push 8
pop ecx
push eax
add esi, 0x15
lea edi, [ebp - 0x150]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebx + 0x836]
call fcn.0040bba6
mov edx, dword [ebp + 0x54]
xor ecx, ecx
mov al, byte [ebp + ecx - 0x170]
xor al, byte [edx + ecx + 1]
mov byte [ebp + ecx - 0x130], al
inc ecx
cmp ecx, 0x10
jl 0x40aa0b
push 1
lea eax, [ebp - 0x130]
mov ecx, ebx
push eax
push dword [ebp + 0x34]
call fcn.00408613
push dword [ebp + 0x54]
call fcn.0041ff8d
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.004113f0
jmp 0x40acbc
cmp al, 0x17
jne 0x40aa66
cmp edi, 1
jne 0x40ac84
push ecx
jmp 0x40ac7c
cmp al, 0x22
jne 0x40ac84
cmp edi, 0xd
jne 0x40ac84
cmp edx, 5
je 0x40aa8e
cmp edx, 4
je 0x40aa8e
cmp byte [ebx + 0x9b9], 0
jne 0x40aa8e
xor al, al
jmp 0x40aa98
mov al, 1
mov byte [ebp + 0x53], al
cmp edx, 5
je 0x40aa9c
mov byte [ebp + 0x53], 0
push 0
test al, al
je 0x40ac5f
push 0xd
push ecx
lea ecx, [ebp - 0x4ac]
call fcn.004011a3
push 8
pop edi
push edi
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 4], 7
call fcn.00401312
push 1
push 0x20
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.004013d6
push 1
push 0x10
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.004013d6
push 1
push 0x10
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.004013d6
cmp byte [ebp + 0x53], 0
mov eax, dword [ebp + 0x14]
mov dword [esi + 7], eax
mov ax, word [ebp + 0x18]
mov word [esi + 0xb], ax
mov dword [esi + 0x7ee], edi
jne 0x40ab39
cmp byte [esi + 0x7e1], 0
lea ecx, [esi + 0xd]
je 0x40ab32
lea eax, [esi + 0x7d1]
push eax
jmp 0x40ab34
push 0
call fcn.0040f46a
push dword [ebp + 0x54]
push 0xd
call fcn.00406a34
mov esi, eax
pop ecx
pop ecx
push 1
mov dword [esi + 0xc], 0x68
mov ecx, dword [ebp + 0x5c]
mov dword [esi + 2], ecx
mov cx, word [ebp + 0x60]
push ecx
mov word [esi + 6], cx
mov eax, dword [ebp + 0x5c]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040783e
push esi
mov ecx, ebx
mov word [esi], ax
call fcn.00406778
push 7
lea ecx, [ebp - 0x398]
call fcn.00401166
push 1
push 8
lea eax, [ebp + 0x58]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x398]
mov byte [ebp + 0x58], 0x1e
call fcn.0040169e
mov eax, dword [ebp + 0x5c]
lea ecx, [ebp - 0x398]
push 1
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x38]
push 0x20
push eax
call fcn.0040169e
movzx eax, word [ebp + 0x60]
lea ecx, [ebp - 0x398]
push 1
mov dword [ebp], eax
lea eax, [ebp]
push 0x10
push eax
call fcn.0040169e
call fcn.0040238a
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x5c]
push edx
push edx
push ecx
push ecx
mov ecx, esp
push edx
push 8
push edx
push dword [ebp - 0x398]
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
push dword [ebp - 0x38c]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040b30e
cmp byte [ebp + 0x53], 0
jne 0x40ac49
mov eax, dword [ebp + 0x5c]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00408923
mov eax, dword [ebp + 0x5c]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040b5f4
lea ecx, [ebp - 0x398]
call fcn.00401225
lea ecx, [ebp - 0x4ac]
jmp 0x40a860
mov eax, dword [ebp + 0x5c]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00408530
push dword [ebp + 0x54]
call fcn.0041ff8d
pop ecx
jmp 0x40acbc
cmp edi, 2
jbe 0x40ac8d
cmp al, 0xc
je 0x40ac91
cmp al, 0x14
jb 0x40acbc
push ecx
push edi
call fcn.00406a34
pop ecx
pop ecx
mov ecx, dword [ebp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x5c]
mov dword [eax + 2], ecx
mov cx, word [ebp + 0x60]
mov word [eax + 6], cx
mov ecx, dword [ebp + 0x48]
mov word [eax], cx
mov ecx, ebx
push eax
call fcn.00406778
mov ecx, dword [ebp + 0x2c]
lea eax, [ebp + 0x54]
push eax
call fcn.0040ee63
mov esi, dword [ebp + 0x34]
mov dword [ebp + 0x3c], eax
test eax, eax
jg 0x40a32c
jmp 0x40ad57
mov eax, dword [esi + 0x7ee]
push 8
pop edi
cmp eax, edi
je 0x40acf4
cmp eax, 4
je 0x40acf4
cmp eax, 1
je 0x40acf4
cmp eax, 3
jne 0x40ad39
push 1
call fcn.00406a16
pop ecx
mov ecx, eax
mov eax, dword [esi + 0x7ee]
mov edx, dword [ecx + 0x10]
cmp eax, 4
jne 0x40ad11
mov byte [edx], 0x1d
jmp 0x40ad1a
cmp eax, edi
sete al
add al, 0x20
mov byte [edx], al
mov dword [ecx + 0xc], edi
mov eax, dword [ebp + 0x5c]
mov dword [ecx + 2], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 6], ax
mov eax, dword [ebp + 0x48]
mov word [ecx], ax
push ecx
mov ecx, ebx
call fcn.00406778
mov eax, dword [ebp + 0x5c]
push 0
push 1
push 0
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 0x60]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00406ef6
mov eax, dword [ebp + 0x48]
movzx ecx, word [ebx + 7]
inc eax
cmp eax, ecx
mov dword [ebp + 0x48], eax
jb 0x40a112
mov al, 1
jmp 0x409e4e