Function at 0x40c817
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x44812e
call fcn.00425528
sub esp, 0x4a0
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp + 0x24]
mov ecx, 0x4a6c46
push eax
push ebx
push dword [ebx + 0x816]
call fcn.004155f1
cmp eax, 0xffffffff
jne 0x40c863
cmp dword [ebp + 0x24], 0x2746
jne 0x40c857
xor eax, eax
jmp 0x40c863
cmp dword [ebp + 0x24], 0
je 0x40c863
cmp byte [ebx + 4], 0
je 0x40c89d
cmp byte [ebx + 4], 0
jne 0x40c8ac
test eax, eax
jg 0x40c830
xor ecx, ecx
xorps xmm0, xmm0
mov dword [ebp + 0x40], ecx
lea ecx, [ebx + 0x7e9]
movlpd qword [ebp + 0x28], xmm0
call fcn.0040c40c
mov esi, eax
test esi, esi
je 0x40c9c0
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x4c], eax
jmp 0x40c8c3
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 0x40c966
or eax, ecx
jne 0x40c8e0
call fcn.00402497
mov ecx, edx
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x44], ecx
jmp 0x40c8e3
mov eax, dword [ebp + 0x4c]
push ecx
movzx ecx, byte [esi + 0x13]
lea edi, [esi + 0xd]
push eax
mov eax, dword [edi]
push 1
push ecx
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.0040dd6e
test al, al
jne 0x40c926
push 1
push dword [esi + 0x21]
call fcn.00425577
pop ecx
pop ecx
cmp dword [esi + 0x14], 0
je 0x40c987
push 0x44a1d0
mov ecx, edi
call fcn.004028bc
test al, al
je 0x40c987
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.0040a60b
test eax, eax
je 0x40c987
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x7ee], ecx
jmp 0x40c987
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.00409993
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.0040c40c
mov ecx, dword [ebp + 0x44]
mov esi, eax
test esi, esi
jne 0x40c8c0
jmp 0x40c9cc
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.0040c426
mov esi, eax
mov dword [ebp + 0x3c], esi
mov edi, esi
test esi, esi
je 0x40cb65
mov eax, dword [ebp + 0x4c]
or eax, dword [ebp + 0x44]
jne 0x40ca10
call fcn.00402497
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.00425730
mov dword [ebp + 0x40], eax
jmp 0x40ca13
mov eax, dword [ebp + 0x40]
cmp dword [edi + 6], eax
jae 0x40cb46
mov al, byte [edi + 0xa]
mov ecx, edi
push 0x44a1d0
mov byte [ebp + 0x53], al
call fcn.0040289f
mov cl, byte [ebp + 0x53]
dec al
neg al
sbb al, al
inc al
mov byte [ebp + 0x58], al
cmp cl, 6
je 0x40cabc
test al, al
jne 0x40cabc
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 0x40ca9a
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 0x40ca64
mov esi, dword [ebp + 0x3c]
movzx eax, word [edi + 4]
mov ecx, 0x4a6c46
push eax
push dword [edi]
lea eax, [ebp + 0x48]
push 3
push eax
push dword [ebx + 0x816]
call fcn.00415704
jmp 0x40cb46
cmp dword [edi + 0xb], 0
je 0x40cad5
push dword [edi + 0xb]
call fcn.00425585
and dword [edi + 0xb], 0
mov al, byte [ebp + 0x58]
pop ecx
mov cl, byte [ebp + 0x53]
cmp cl, 6
jne 0x40cb19
test al, al
jne 0x40cb19
cmp dword [edi + 0x112], 1
jne 0x40cb19
push 1
call fcn.004094c2
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.00409229
cmp edi, esi
jne 0x40cb3a
lea esi, [ebx + 0x3b9]
mov ecx, esi
call fcn.0040c446
mov ecx, esi
call fcn.0040c426
mov esi, eax
mov dword [ebp + 0x3c], esi
mov edi, esi
jmp 0x40cb53
or dword [edi], 0xffffffff
mov eax, 0xffff
mov word [edi + 4], ax
lea ecx, [ebx + 0x3b9]
call fcn.0040c426
mov edi, eax
test edi, edi
jne 0x40c9e6
test esi, esi
je 0x40cb65
mov dword [ebx + 0x3b9], esi
xor ecx, ecx
xor eax, eax
cmp cx, word [ebx + 7]
jmp 0x40d7c1
imul esi, eax, 0x7f2
add esi, dword [ebx + 0x334]
mov dword [ebp + 0x34], esi
cmp byte [esi], 0
je 0x40d7b7
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 0x40cbc4
call fcn.00402497
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.00425730
mov edi, eax
mov dword [ebp + 0x40], edi
jmp 0x40cbc7
mov edi, dword [ebp + 0x40]
mov ecx, dword [esi + 0x6b8]
cmp edi, ecx
jbe 0x40cc3b
mov eax, edi
sub eax, ecx
cmp eax, 0x1388
jbe 0x40cc3b
cmp dword [esi + 0x7ee], 8
jne 0x40cc3b
lea ecx, [esi + 0xd]
call fcn.004101b1
xor ecx, ecx
cmp dword [eax + 0x60], ecx
jne 0x40cc38
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.0040dd6e
lea ecx, [esi + 0xd]
call fcn.00410242
mov edi, dword [ebp + 0x40]
add eax, edi
mov dword [esi + 0x6b8], eax
jmp 0x40cc3b
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.00412255
lea ecx, [esi + 0xd]
call fcn.00411718
test al, al
jne 0x40d738
mov eax, dword [esi + 0x7ee]
cmp eax, 1
je 0x40cc92
cmp eax, 2
jne 0x40cca2
lea ecx, [esi + 0xd]
call fcn.004116c7
test al, al
je 0x40d738
cmp dword [esi + 0x7ee], 3
jne 0x40ccbb
lea ecx, [esi + 0xd]
call fcn.0040ecbe
test al, al
je 0x40d738
mov eax, dword [esi + 0x7ee]
cmp eax, 4
je 0x40ccd5
cmp eax, 5
je 0x40ccd5
cmp eax, 6
je 0x40ccd5
cmp eax, 7
jne 0x40ccee
mov ecx, dword [esi + 0x7cd]
cmp edi, ecx
jbe 0x40ccee
mov eax, edi
sub eax, ecx
cmp eax, 0x2710
ja 0x40d738
lea ecx, [esi + 0xd]
call fcn.004116c0
test al, al
je 0x40cd30
push 1
call fcn.004094c2
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.00409229
jmp 0x40d7b7
cmp dword [esi + 0x7ee], 8
jne 0x40cd7b
cmp edi, dword [esi + 0x6b4]
jbe 0x40cd7b
cmp byte [ebx + 6], 0
jne 0x40cd55
mov eax, 0xffff
cmp word [esi + 0x6b2], ax
jne 0x40cd7b
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.0040b385
lea eax, [ebp + 0x54]
push eax
lea ecx, [esi + 0xd]
call fcn.0041188f
jmp 0x40d72b
lea edi, [eax + 7]
sar edi, 3
cmp dword [ebx + 0x7d1], 0
mov dword [ebp + 0x38], edi
je 0x40ce95
push 0x240
lea ecx, [ebp - 0x120]
call fcn.004011f6
and dword [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.004015c1
push edi
push dword [ebp + 0x54]
lea ecx, [ebp - 0x120]
call fcn.00401716
mov edi, dword [ebp - 0x120]
lea eax, [edi + 7]
sar eax, 3
add dword [ebx + 0x7dd], eax
test edi, edi
je 0x40ce84
push eax
call fcn.0042551d
mov ecx, dword [ebp - 0x120]
mov esi, eax
add ecx, 7
sar ecx, 3
push ecx
push dword [ebp - 0x114]
push esi
call fcn.004268d0
add esp, 0x10
lea ecx, [ebp - 0x120]
call fcn.004015c1
mov ecx, dword [ebx + 0x7d1]
lea eax, [ebp - 0x120]
push eax
push edi
push esi
call fcn.00401d85
mov eax, dword [ebp - 0x120]
add eax, 7
sar eax, 3
add dword [ebx + 0x7e5], eax
push esi
call fcn.00425585
mov edi, dword [ebp - 0x120]
pop ecx
lea edi, [edi + 7]
sar edi, 3
cmp edi, dword [ebp + 0x38]
jle 0x40ce6c
push dword [ebp + 0x54]
call fcn.00425585
push edi
call fcn.0042551d
pop ecx
pop ecx
mov dword [ebp + 0x54], eax
jmp 0x40ce6f
mov eax, dword [ebp + 0x54]
push edi
push dword [ebp - 0x114]
push eax
call fcn.004268d0
mov esi, dword [ebp + 0x34]
add esp, 0xc
jmp 0x40ce86
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.004012b5
mov edx, dword [esi + 0x7ee]
cmp edx, 6
jne 0x40cf17
mov eax, dword [ebp + 0x54]
cmp byte [eax], 0xb
jne 0x40cec8
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.0040b18c
jmp 0x40d6d9
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.00409993
mov ecx, dword [ebp + 0x2c]
mov esi, dword [ebx]
call fcn.00410242
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 0x40d6d9
mov ecx, dword [ebp + 0x54]
mov al, byte [ecx]
cmp al, 0xb
jne 0x40cf4c
cmp edx, 8
je 0x40d4c0
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.0040b18c
mov ecx, dword [ebp + 0x54]
jmp 0x40d4c0
cmp al, 0x1e
jne 0x40d049
cmp edi, 7
jne 0x40d268
cmp edx, 5
je 0x40cf7d
cmp edx, edi
je 0x40cf7d
lea eax, [ebx + 0x22d]
push eax
lea ecx, [ebp + 0x5c]
call fcn.0040289f
test al, al
je 0x40d6d9
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.0040b385
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.0040e032
push 0
push 7
push dword [ebp + 0x54]
lea ecx, [ebp - 0x120]
call fcn.00401233
push 8
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], edi
call fcn.004013a2
push edi
push 0x20
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401466
push edi
push 0x10
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401466
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.004094e0
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.00409229
lea ecx, [ebp - 0x120]
jmp 0x40d2c0
cmp al, 9
jne 0x40d161
cmp edi, 9
jne 0x40d268
push 0
push edi
push ecx
lea ecx, [ebp - 0x120]
call fcn.00401233
push 8
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 2
call fcn.004013a2
push 1
push 0x20
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401466
push 1
push 0x20
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401466
call fcn.00402497
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.00425730
mov dword [ebp + 0x40], eax
cmp eax, dword [ebp + 0x30]
jbe 0x40d0cf
mov edx, eax
sub edx, dword [ebp + 0x30]
jmp 0x40d0d1
xor edx, edx
mov eax, dword [esi + 0x6ae]
add eax, 0x118
imul ecx, eax, 6
movzx eax, word [ecx + esi]
test eax, eax
je 0x40d0f6
imul eax, eax, 3
cmp edx, eax
jae 0x40d153
cmp edx, 0x4b0
jae 0x40d153
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 0x40d12d
cmp eax, edx
jle 0x40d134
mov word [esi + 0x6b2], di
push edi
lea ecx, [esi + 0xd]
call fcn.00411eb1
inc dword [esi + 0x6ae]
cmp dword [esi + 0x6ae], 5
jne 0x40d153
and dword [esi + 0x6ae], 0
push dword [ebp + 0x54]
call fcn.00425585
pop ecx
jmp 0x40d03e
cmp al, 6
jne 0x40d255
cmp edi, 5
jne 0x40d268
push 0
push edi
push ecx
lea ecx, [ebp - 0x284]
call fcn.00401233
push 8
lea ecx, [ebp - 0x284]
mov dword [ebp - 4], 3
call fcn.004013a2
xor edi, edi
lea eax, [ebp + 8]
inc edi
lea ecx, [ebp - 0x284]
push edi
push 0x20
push eax
call fcn.00401466
lea ecx, [ebp - 0x120]
call fcn.0040129a
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.00401731
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.00401731
call fcn.00402446
mov esi, eax
mov dword [ebp + 0x40], esi
call fcn.00402497
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.00401731
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.0040dd6e
push dword [ebp + 0x54]
call fcn.00425585
pop ecx
lea ecx, [ebp - 0x120]
call fcn.004012b5
jmp 0x40d2ba
cmp al, 0x20
jne 0x40d268
mov dword [esi + 0x7ee], 3
jmp 0x40d6d9
cmp al, 0x11
jne 0x40d2ce
push 0
push edi
push ecx
lea ecx, [ebp - 0x284]
call fcn.00401233
push 8
pop edi
push edi
lea ecx, [ebp - 0x284]
mov dword [ebp - 4], 5
call fcn.004013a2
push 1
push edi
lea eax, [ebp + 4]
push eax
lea ecx, [ebp - 0x284]
call fcn.0040151e
push dword [ebp + 4]
lea ecx, [esi + 0x7e2]
call fcn.00413bfb
push dword [ebp + 0x54]
call fcn.00425585
pop ecx
lea ecx, [ebp - 0x284]
or dword [ebp - 4], 0xffffffff
call fcn.004012b5
jmp 0x40d71c
cmp al, 0xa
jne 0x40d2f1
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.0040e032
jmp 0x40d6d9
cmp al, 0x29
jne 0x40d31c
lea ecx, [esi + 0x6bc]
call fcn.004015c1
lea eax, [edi - 1]
push eax
mov eax, dword [ebp + 0x54]
lea ecx, [esi + 0x6bc]
inc eax
push eax
call fcn.004016c5
push dword [ebp + 0x54]
jmp 0x40d6f2
cmp al, 0xf
jne 0x40d337
cmp edi, 0x39
jne 0x40d6e4
push ecx
push esi
mov ecx, ebx
call fcn.0040d7d1
jmp 0x40d6d9
cmp al, 0x10
jne 0x40d4b3
cmp edi, 0x35
jne 0x40d6e4
lea ecx, [ebp - 0xc4]
call fcn.00413de0
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 6
call fcn.00413ef3
push 4
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00415151
push 2
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00415151
push 0x14
lea eax, [ebx + 0x991]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00415151
lea ecx, [ebp - 0xc4]
call fcn.00413e25
mov esi, dword [ebp + 0x54]
lea ecx, [ebp - 0xc4]
call fcn.00413eef
xor edx, edx
mov ecx, dword [eax + edx*4]
cmp ecx, dword [esi + edx*4 + 1]
jne 0x40d3c7
inc edx
cmp edx, 5
jne 0x40d3b6
jmp 0x40d432
lea ecx, [ebp - 0xc4]
call fcn.00413ef3
push 4
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00415151
push 2
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00415151
push 0x14
lea eax, [ebx + 0x9a5]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00415151
lea ecx, [ebp - 0xc4]
call fcn.00413e25
mov esi, dword [ebp + 0x54]
lea ecx, [ebp - 0xc4]
call fcn.00413eef
xor edx, edx
mov ecx, dword [eax + edx*4]
cmp ecx, dword [esi + edx*4 + 1]
jne 0x40d436
inc edx
cmp edx, 5
jne 0x40d423
mov al, 1
jmp 0x40d438
xor al, al
test al, al
je 0x40d496
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.0040e5eb
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 0x40d46b
push 1
lea eax, [ebp - 0x130]
mov ecx, ebx
push eax
push dword [ebp + 0x34]
call fcn.0040b075
push dword [ebp + 0x54]
call fcn.00425585
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.00413df2
jmp 0x40d71c
cmp al, 0x17
jne 0x40d4c6
cmp edi, 1
jne 0x40d6e4
push ecx
jmp 0x40d6dc
cmp al, 0x22
jne 0x40d6e4
cmp edi, 0xd
jne 0x40d6e4
cmp edx, 5
je 0x40d4ee
cmp edx, 4
je 0x40d4ee
cmp byte [ebx + 0x9b9], 0
jne 0x40d4ee
xor al, al
jmp 0x40d4f8
mov al, 1
mov byte [ebp + 0x53], al
cmp edx, 5
je 0x40d4fc
mov byte [ebp + 0x53], 0
push 0
test al, al
je 0x40d6bf
push 0xd
push ecx
lea ecx, [ebp - 0x4ac]
call fcn.00401233
push 8
pop edi
push edi
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 4], 7
call fcn.004013a2
push 1
push 0x20
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00401466
push 1
push 0x10
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00401466
push 1
push 0x10
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00401466
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 0x40d599
cmp byte [esi + 0x7e1], 0
lea ecx, [esi + 0xd]
je 0x40d592
lea eax, [esi + 0x7d1]
push eax
jmp 0x40d594
push 0
call fcn.00411e98
push dword [ebp + 0x54]
push 0xd
call fcn.004094e0
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.0040a2ae
push esi
mov ecx, ebx
mov word [esi], ax
call fcn.00409229
push 7
lea ecx, [ebp - 0x398]
call fcn.004011f6
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.00401731
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.00401731
movzx eax, word [ebp + 0x60]
lea ecx, [ebp - 0x398]
push 1
mov dword [ebp], eax
lea eax, [ebp]
push 0x10
push eax
call fcn.00401731
call fcn.00402446
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.0040dd6e
cmp byte [ebp + 0x53], 0
jne 0x40d6a9
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.0040b385
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.0040e032
lea ecx, [ebp - 0x398]
call fcn.004012b5
lea ecx, [ebp - 0x4ac]
jmp 0x40d2c0
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.0040af92
push dword [ebp + 0x54]
call fcn.00425585
pop ecx
jmp 0x40d71c
cmp edi, 2
jbe 0x40d6ed
cmp al, 0xc
je 0x40d6f1
cmp al, 0x14
jb 0x40d71c
push ecx
push edi
call fcn.004094e0
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.00409229
mov ecx, dword [ebp + 0x2c]
lea eax, [ebp + 0x54]
push eax
call fcn.0041188f
mov esi, dword [ebp + 0x34]
mov dword [ebp + 0x3c], eax
test eax, eax
jg 0x40cd8c
jmp 0x40d7b7
mov eax, dword [esi + 0x7ee]
push 8
pop edi
cmp eax, edi
je 0x40d754
cmp eax, 4
je 0x40d754
cmp eax, 1
je 0x40d754
cmp eax, 3
jne 0x40d799
push 1
call fcn.004094c2
pop ecx
mov ecx, eax
mov eax, dword [esi + 0x7ee]
mov edx, dword [ecx + 0x10]
cmp eax, 4
jne 0x40d771
mov byte [edx], 0x1d
jmp 0x40d77a
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.00409229
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.00409993
mov eax, dword [ebp + 0x48]
movzx ecx, word [ebx + 7]
inc eax
cmp eax, ecx
mov dword [ebp + 0x48], eax
jb 0x40cb72
mov al, 1
jmp 0x40c8ae