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

Disassembly:
mov eax, 0x436a1f
call fcn.0041fd88
sub esp, 0xa08
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea eax, [esp + 0x48]
mov ecx, 0x48fe17
push eax
push ebx
push dword [ebx + 0x816]
call fcn.00412def
cmp eax, 0xffffffff
jne 0x409c5f
cmp dword [esp + 0x48], 0x2746
jne 0x409c52
xor eax, eax
jmp 0x409c5f
cmp dword [esp + 0x48], 0
je 0x409c5f
cmp byte [ebx + 4], 0
je 0x409ca1
cmp byte [ebx + 4], 0
jne 0x409cb0
test eax, eax
jg 0x409c29
xorps xmm0, xmm0
lea edi, [ebx + 0x7e9]
xor eax, eax
movlpd qword [esp + 0x30], xmm0
mov ecx, edi
mov dword [esp + 0x38], eax
call fcn.00409849
mov esi, eax
test esi, esi
je 0x409dba
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
jmp 0x409cca
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 [esp + 0xa18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret
mov eax, dword [esp + 0x30]
cmp dword [esi + 0x25], 0
jne 0x409d6f
or eax, ecx
jne 0x409ce9
call fcn.0040276d
mov ecx, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ecx
jmp 0x409ced
mov eax, dword [esp + 0x30]
push ecx
movzx ecx, byte [esi + 0x13]
lea ebp, [esi + 0xd]
push eax
mov eax, dword [ebp]
push 1
push ecx
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 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.0040b2b6
test al, al
jne 0x409d2e
push dword [esi + 0x21]
call fcn.0041f594
pop ecx
cmp dword [esi + 0x14], 0
je 0x409d90
push 0x4380f0
mov ecx, ebp
call fcn.00402c27
test al, al
je 0x409d90
mov eax, dword [ebp]
push 1
push 1
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [ebp + 4]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00407a05
test eax, eax
je 0x409d90
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x7ee], ecx
jmp 0x409d90
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.00406dbf
mov eax, dword [edi + 8]
mov ecx, edi
inc dword [edi + 0x10]
mov byte [eax + 0x29], 0
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x2a]
mov dword [edi + 8], eax
call fcn.00409849
mov ecx, dword [esp + 0x24]
mov esi, eax
test esi, esi
jne 0x409cc6
jmp 0x409dca
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
lea esi, [ebx + 0x3b9]
mov ecx, esi
call fcn.00409863
mov ebp, eax
mov dword [esp + 0x2c], ebp
mov edi, ebp
test ebp, ebp
je 0x409eeb
mov eax, dword [esp + 0x30]
or eax, dword [esp + 0x24]
jne 0x409e16
call fcn.0040276d
push 0
mov ecx, eax
mov eax, edx
push 0x3e8
push eax
push ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], eax
call fcn.00422530
mov dword [esp + 0x38], eax
jmp 0x409e1a
mov eax, dword [esp + 0x38]
cmp dword [edi + 6], eax
jae 0x409ed4
cmp byte [edi + 0xa], 6
mov ecx, edi
push 0x4380f0
sete byte [esp + 0x1c]
call fcn.00402c09
mov cl, byte [esp + 0x18]
dec al
neg al
sbb al, al
inc al
mov byte [esp + 0x23], al
test cl, cl
jne 0x409ef8
test al, al
jne 0x409ef8
mov eax, dword [esp + 0x38]
inc byte [edi + 0xa]
add eax, 0x3e8
and dword [esp + 0x40], 0
mov dword [edi + 6], eax
cmp dword [ebx + 0x3b1], 0
mov byte [esp + 0x28], 0x18
jbe 0x409eb6
mov ebp, dword [esp + 0x40]
mov eax, dword [ebx + 0x3ad]
mov ecx, dword [eax + ebp*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, [esp + 0x34]
push eax
call dword [esi + 0x1c]
inc ebp
cmp ebp, dword [ebx + 0x3b1]
jb 0x409e7e
mov ebp, dword [esp + 0x2c]
lea esi, [ebx + 0x3b9]
movzx eax, word [edi + 4]
mov ecx, 0x48fe17
push eax
push dword [edi]
lea eax, [esp + 0x30]
push 3
push eax
push dword [ebx + 0x816]
call fcn.00412e89
mov ecx, esi
call fcn.00409863
mov edi, eax
test edi, edi
jne 0x409de7
test ebp, ebp
je 0x409eeb
mov dword [esi], ebp
xor ecx, ecx
xor eax, eax
cmp cx, word [ebx + 7]
jmp 0x40ace3
cmp dword [edi + 0xb], 0
je 0x409f13
push dword [edi + 0xb]
call fcn.004226f4
and dword [edi + 0xb], 0
mov al, byte [esp + 0x27]
pop ecx
mov cl, byte [esp + 0x18]
test cl, cl
je 0x409f56
test al, al
jne 0x409f56
cmp dword [edi + 0x112], 1
jne 0x409f56
push 1
call fcn.0040692d
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.00406671
mov ecx, esi
cmp edi, ebp
jne 0x409f75
call fcn.00409883
mov ecx, esi
call fcn.00409863
mov ebp, eax
mov dword [esp + 0x2c], ebp
mov edi, ebp
jmp 0x409edd
or dword [edi], 0xffffffff
mov eax, 0xffff
mov word [edi + 4], ax
jmp 0x409ed6
imul ebp, eax, 0x7f2
add ebp, dword [ebx + 0x334]
cmp byte [ebp], 0
je 0x40acd8
mov eax, dword [ebp + 1]
mov dword [esp + 0x10], eax
mov ax, word [ebp + 5]
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x30]
or eax, dword [esp + 0x24]
jne 0x409fdd
call fcn.0040276d
push 0
mov ecx, eax
mov eax, edx
push 0x3e8
push eax
push ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], eax
call fcn.00422530
mov edi, eax
mov dword [esp + 0x38], edi
jmp 0x409fe1
mov edi, dword [esp + 0x38]
mov ecx, dword [ebp + 0x6b8]
cmp edi, ecx
jbe 0x40a051
mov eax, edi
sub eax, ecx
cmp eax, 0x1388
jbe 0x40a051
cmp dword [ebp + 0x7ee], 8
jne 0x40a051
lea ecx, [ebp + 0xd]
call fcn.0040d844
xor ecx, ecx
cmp dword [eax + 0x60], ecx
jne 0x40a051
push dword [esp + 0x24]
mov eax, dword [ebp + 1]
push dword [esp + 0x34]
mov byte [esp + 0x2b], 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 [ebp + 5]
mov word [edx + 4], ax
lea eax, [esp + 0x47]
push 8
push eax
call fcn.0040b2b6
lea ecx, [ebp + 0xd]
call fcn.0040d8d1
add eax, edi
mov dword [ebp + 0x6b8], eax
lea eax, [ebx + 0x3ad]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x18]
lea esi, [ebp + 0xd]
push dword [esp + 0x38]
push dword [ebx + 0x80d]
push ecx
push ecx
mov ecx, esp
push dword [ebx + 0x816]
mov dword [ecx], eax
mov ax, word [esp + 0x30]
mov word [ecx + 4], ax
mov ecx, esi
call fcn.0040fad3
mov ecx, esi
call fcn.0040edc8
test al, al
jne 0x40ac4e
mov eax, dword [ebp + 0x7ee]
cmp eax, 1
je 0x40a0a8
cmp eax, 2
jne 0x40a0b7
mov ecx, esi
call fcn.0040ed76
test al, al
je 0x40ac4e
cmp dword [ebp + 0x7ee], 3
jne 0x40a0cf
mov ecx, esi
call fcn.0040c33f
test al, al
je 0x40ac4e
mov eax, dword [ebp + 0x7ee]
cmp eax, 4
je 0x40a0e9
cmp eax, 5
je 0x40a0e9
cmp eax, 6
je 0x40a0e9
cmp eax, 7
jne 0x40a102
mov ecx, dword [ebp + 0x7cd]
cmp edi, ecx
jbe 0x40a102
mov eax, edi
sub eax, ecx
cmp eax, 0x2710
ja 0x40ac4e
mov ecx, esi
call fcn.0040ed6f
test al, al
je 0x40a146
push 1
call fcn.0040692d
pop ecx
push eax
mov ecx, dword [eax + 0x10]
mov dword [eax + 0xc], 8
mov byte [ecx], 0x26
mov ecx, dword [esp + 0x14]
mov dword [eax + 2], ecx
mov cx, word [esp + 0x18]
mov word [eax + 6], cx
mov ecx, dword [esp + 0x2c]
mov word [eax], cx
mov ecx, ebx
call fcn.00406671
jmp 0x40acd8
cmp dword [ebp + 0x7ee], 8
jne 0x40a193
cmp edi, dword [ebp + 0x6b4]
jbe 0x40a193
cmp byte [ebx + 6], 0
jne 0x40a16b
mov eax, 0xffff
cmp word [ebp + 0x6b2], ax
jne 0x40a193
push 1
push ecx
push ecx
mov ecx, esp
lea eax, [edi + 0x1388]
mov dword [ebp + 0x6b4], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov ax, word [esp + 0x20]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.004087a6
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0040f0b8
mov esi, eax
mov dword [esp + 0x2c], esi
jmp 0x40ac41
cmp dword [ebx + 0x7d1], 0
je 0x40a2d0
push 0x5d4
lea ecx, [esp + 0x17c]
call fcn.004016d9
and dword [esp + 0xa20], 0
lea ecx, [esp + 0x178]
call fcn.00401abe
lea eax, [esi + 7]
sar eax, 3
lea ecx, [esp + 0x178]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x48], eax
call fcn.00401c37
mov edi, dword [esp + 0x178]
lea eax, [edi + 7]
sar eax, 3
add dword [ebx + 0x7dd], eax
test edi, edi
je 0x40a2b8
push eax
call fcn.0041f49d
mov ecx, dword [esp + 0x17c]
mov esi, eax
add ecx, 7
sar ecx, 3
push ecx
push dword [esp + 0x18c]
push esi
call fcn.004201a0
add esp, 0x10
lea ecx, [esp + 0x178]
call fcn.00401abe
mov ecx, dword [ebx + 0x7d1]
lea eax, [esp + 0x178]
push eax
push edi
push esi
call fcn.004021b0
mov eax, dword [esp + 0x178]
add eax, 7
sar eax, 3
add dword [ebx + 0x7e5], eax
push esi
call fcn.004226f4
mov edi, dword [esp + 0x17c]
pop ecx
lea edi, [edi + 7]
sar edi, 3
cmp edi, dword [esp + 0x40]
jle 0x40a29d
push dword [esp + 0x1c]
call fcn.004226f4
push edi
call fcn.0041f49d
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
jmp 0x40a2a1
mov eax, dword [esp + 0x1c]
push edi
push dword [esp + 0x188]
push eax
call fcn.004201a0
mov esi, dword [esp + 0x38]
add esp, 0xc
jmp 0x40a2ba
xor edi, edi
or dword [esp + 0xa20], 0xffffffff
lea ecx, [esp + 0x178]
call fcn.0040179e
jmp 0x40a2d6
lea edi, [esi + 7]
sar edi, 3
mov edx, dword [ebp + 0x7ee]
cmp edx, 6
jne 0x40a35f
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0xb
jne 0x40a30c
push edi
push eax
mov eax, dword [esp + 0x18]
push ecx
push ecx
mov ecx, esp
push ebp
mov dword [ecx], eax
mov ax, word [esp + 0x28]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040859e
jmp 0x40abea
mov eax, dword [esp + 0x10]
push 0
push 1
push 0
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [esp + 0x28]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00406dbf
mov esi, dword [ebx]
lea ecx, [ebp + 0xd]
call fcn.0040d8d1
mov edx, dword [ebx]
push eax
mov eax, dword [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [esp + 0x20]
mov word [ecx + 4], ax
mov ecx, ebx
call dword [edx + 0xb8]
push eax
mov ecx, ebx
call dword [esi + 0x64]
jmp 0x40abea
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx]
cmp al, 0xb
jne 0x40a398
cmp edx, 8
je 0x40a99c
mov eax, dword [esp + 0x10]
push edi
push ecx
push ecx
push ecx
mov ecx, esp
push ebp
mov dword [ecx], eax
mov ax, word [esp + 0x28]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040859e
mov ecx, dword [esp + 0x1c]
jmp 0x40a99c
cmp al, 0x1e
jne 0x40a4a9
cmp edi, 7
jne 0x40a4a9
cmp edx, 5
je 0x40a3ca
cmp edx, edi
je 0x40a3ca
lea eax, [ebx + 0x22d]
push eax
lea ecx, [esp + 0x14]
call fcn.00402c09
test al, al
je 0x40abea
xor edi, edi
mov dword [ebp + 0x7ee], 8
mov eax, dword [esp + 0x10]
inc edi
push edi
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [esp + 0x20]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.004087a6
mov eax, dword [esp + 0x10]
push edi
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [esp + 0x20]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040b585
push 0
push 7
push dword [esp + 0x24]
lea ecx, [esp + 0x5d4]
call fcn.0040171c
push 8
lea ecx, [esp + 0x5cc]
mov dword [esp + 0xa24], edi
call fcn.0040188c
push edi
push 0x20
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x5d4]
call fcn.00401961
push edi
push 0x10
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x5d4]
call fcn.00401961
mov eax, dword [esp + 0x54]
mov dword [ebp + 7], eax
mov ax, word [esp + 0x58]
mov word [ebp + 0xb], ax
push dword [esp + 0x1c]
push 7
call fcn.0040694b
pop ecx
pop ecx
push eax
mov dword [eax + 0xc], esi
mov ecx, dword [esp + 0x14]
mov dword [eax + 2], ecx
mov cx, word [esp + 0x18]
mov word [eax + 6], cx
mov ecx, dword [esp + 0x2c]
mov word [eax], cx
mov ecx, ebx
call fcn.00406671
lea ecx, [esp + 0x5c8]
jmp 0x40a774
cmp al, 9
jne 0x40a5db
cmp edi, 9
jne 0x40a5db
push 0
push edi
push ecx
lea ecx, [esp + 0x6e8]
call fcn.0040171c
push 8
lea ecx, [esp + 0x6e0]
mov dword [esp + 0xa24], 2
call fcn.0040188c
push 1
push 0x20
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x6e8]
call fcn.00401961
push 1
push 0x20
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x6e8]
call fcn.00401961
call fcn.0040276d
push 0
mov ecx, eax
mov eax, edx
push 0x3e8
push eax
push ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], eax
call fcn.00422530
mov edi, eax
mov dword [esp + 0x38], edi
cmp edi, dword [esp + 0x44]
jbe 0x40a540
mov edx, edi
sub edx, dword [esp + 0x44]
jmp 0x40a542
xor edx, edx
mov eax, dword [ebp + 0x6ae]
add eax, 0x118
imul ecx, eax, 6
movzx eax, word [ecx + ebp]
test eax, eax
je 0x40a567
imul eax, eax, 3
cmp edx, eax
jae 0x40a5c5
cmp edx, 0x4b0
jae 0x40a5c5
mov word [ecx + ebp], dx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x60]
add eax, edi
shr eax, 1
sub ecx, eax
imul eax, dword [ebp + 0x6ae], 6
mov dword [eax + ebp + 0x692], ecx
mov ecx, 0xffff
movzx eax, word [ebp + 0x6b2]
cmp ax, cx
je 0x40a59c
cmp eax, edx
jle 0x40a5a3
mov word [ebp + 0x6b2], dx
movzx eax, dx
lea ecx, [ebp + 0xd]
push eax
call fcn.0040f736
inc dword [ebp + 0x6ae]
cmp dword [ebp + 0x6ae], 5
jne 0x40a5c5
and dword [ebp + 0x6ae], 0
push dword [esp + 0x1c]
call fcn.004226f4
pop ecx
lea ecx, [esp + 0x6dc]
jmp 0x40a774
cmp al, 6
jne 0x40a6fe
cmp edi, 5
jne 0x40a6fe
push 0
push edi
push ecx
lea ecx, [esp + 0x7fc]
call fcn.0040171c
push 8
lea ecx, [esp + 0x7f4]
mov dword [esp + 0xa24], 3
call fcn.0040188c
xor esi, esi
lea eax, [esp + 0x64]
inc esi
lea ecx, [esp + 0x7f0]
push esi
push 0x20
push eax
call fcn.00401961
lea ecx, [esp + 0x3a0]
call fcn.00401783
push esi
push 8
lea eax, [esp + 0x20]
mov byte [esp + 0xa28], 4
push eax
lea ecx, [esp + 0x3ac]
mov byte [esp + 0x24], 9
call fcn.00401c52
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x3a0]
push esi
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push 0x20
push eax
call fcn.00401c52
call fcn.0040271a
mov edi, eax
mov dword [esp + 0x38], edi
call fcn.0040276d
push esi
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x3a4]
push 0x20
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], edx
push eax
mov dword [esp + 0x38], edi
call fcn.00401c52
mov eax, dword [esp + 0x10]
xor edx, edx
push edx
push edi
push edx
push edx
push ecx
push ecx
mov ecx, esp
push edx
push 6
push edx
push dword [esp + 0x3c4]
mov dword [ecx], eax
mov ax, word [esp + 0x3c]
push dword [esp + 0x3d4]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040b2b6
push dword [esp + 0x1c]
call fcn.004226f4
pop ecx
lea ecx, [esp + 0x3a0]
mov byte [esp + 0xa20], 3
call fcn.0040179e
lea ecx, [esp + 0x7f0]
jmp 0x40a774
cmp al, 0x20
jne 0x40a711
mov dword [ebp + 0x7ee], 3
jmp 0x40abea
cmp al, 0x11
jne 0x40a786
push 0
push edi
push ecx
lea ecx, [esp + 0x910]
call fcn.0040171c
push 8
pop edi
push edi
lea ecx, [esp + 0x908]
mov dword [esp + 0xa24], 5
call fcn.0040188c
push 1
push edi
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x910]
call fcn.00401a06
push dword [esp + 0x6c]
lea ecx, [ebp + 0x7e2]
call fcn.004114f6
push dword [esp + 0x1c]
call fcn.004226f4
pop ecx
lea ecx, [esp + 0x904]
or dword [esp + 0xa20], 0xffffffff
call fcn.0040179e
jmp 0x40ac2e
cmp al, 0xa
jne 0x40a7ab
mov eax, dword [esp + 0x10]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [esp + 0x20]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040b585
jmp 0x40abea
cmp al, 0x29
jne 0x40a7e5
lea esi, [ebp + 0x6bc]
mov ecx, esi
call fcn.00401abe
lea eax, [edi - 1]
mov ecx, esi
push eax
mov eax, dword [esp + 0x20]
inc eax
push eax
call fcn.00401be8
push dword [esp + 0x1c]
push edi
call fcn.0040694b
pop ecx
pop ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
jmp 0x40ac0f
cmp al, 0xf
jne 0x40a7fc
cmp edi, 0x39
jne 0x40a7fc
push ecx
push ebp
mov ecx, ebx
call fcn.0040acf4
jmp 0x40abea
cmp al, 0x10
jne 0x40a993
cmp edi, 0x35
jne 0x40a993
lea ecx, [esp + 0x84]
call fcn.004117af
lea ecx, [esp + 0x84]
mov dword [esp + 0xa20], 6
call fcn.004118bb
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x8c]
call fcn.00412b1f
push 2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x8c]
call fcn.00412b1f
push 0x14
lea eax, [ebx + 0x991]
push eax
lea ecx, [esp + 0x8c]
call fcn.00412b1f
lea ecx, [esp + 0x84]
call fcn.004117ee
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x84]
call fcn.004118b7
xor edx, edx
mov ecx, dword [eax + edx*4]
cmp ecx, dword [esi + edx*4 + 1]
jne 0x40a89a
inc edx
cmp edx, 5
jne 0x40a889
jmp 0x40a90e
lea ecx, [esp + 0x84]
call fcn.004118bb
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x8c]
call fcn.00412b1f
push 2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x8c]
call fcn.00412b1f
push 0x14
lea eax, [ebx + 0x9a5]
push eax
lea ecx, [esp + 0x8c]
call fcn.00412b1f
lea ecx, [esp + 0x84]
call fcn.004117ee
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x84]
call fcn.004118b7
xor edx, edx
mov ecx, dword [eax + edx*4]
cmp ecx, dword [esi + edx*4 + 1]
jne 0x40a912
inc edx
cmp edx, 5
jne 0x40a8ff
mov al, 1
jmp 0x40a914
xor al, al
test al, al
je 0x40a970
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x158]
push 8
pop ecx
push eax
add esi, 0x15
lea edi, [esp + 0x13c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x13c]
push eax
lea ecx, [ebx + 0x836]
call fcn.0040bb7a
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov al, byte [esp + ecx + 0x158]
xor al, byte [edx + ecx + 1]
mov byte [esp + ecx + 0x74], al
inc ecx
cmp ecx, 0x10
jl 0x40a94c
push 1
lea eax, [esp + 0x78]
mov ecx, ebx
push eax
push ebp
call fcn.0040846f
push dword [esp + 0x1c]
call fcn.004226f4
or dword [esp + 0xa24], 0xffffffff
pop ecx
lea ecx, [esp + 0x84]
call fcn.004117c1
jmp 0x40ac2e
cmp al, 0x17
jne 0x40a9a2
cmp edi, 1
jne 0x40a9a2
push ecx
jmp 0x40abee
cmp al, 0x22
jne 0x40abf6
cmp edi, 0xd
jne 0x40abf6
cmp edx, 5
je 0x40a9ca
cmp edx, 4
je 0x40a9ca
cmp byte [ebx + 0x9b9], 0
jne 0x40a9ca
xor al, al
jmp 0x40a9cc
mov al, 1
cmp edx, 5
push 0
sete byte [esp + 0x1c]
test al, al
je 0x40abce
push 0xd
push ecx
lea ecx, [esp + 0x4c0]
call fcn.0040171c
push 7
pop edi
push 8
pop esi
push esi
lea ecx, [esp + 0x4b8]
mov dword [esp + 0xa24], edi
call fcn.0040188c
push 1
push 0x20
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x4c0]
call fcn.00401961
push 1
push 0x10
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x4c0]
call fcn.00401961
push 1
push 0x10
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x4c0]
call fcn.00401961
cmp byte [esp + 0x18], 0
mov eax, dword [esp + 0x4c]
mov dword [ebp + 7], eax
mov ax, word [esp + 0x50]
mov word [ebp + 0xb], ax
mov dword [ebp + 0x7ee], esi
jne 0x40aa7f
cmp byte [ebp + 0x7e1], 0
lea ecx, [ebp + 0xd]
je 0x40aa78
lea eax, [ebp + 0x7d1]
push eax
jmp 0x40aa7a
push 0
call fcn.0040f71d
push dword [esp + 0x1c]
push 0xd
call fcn.0040694b
mov esi, eax
pop ecx
pop ecx
push 1
mov dword [esi + 0xc], 0x68
mov ecx, dword [esp + 0x14]
mov dword [esi + 2], ecx
mov cx, word [esp + 0x18]
push ecx
mov word [esi + 6], cx
mov eax, dword [esp + 0x18]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [esp + 0x20]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.004076a9
push esi
mov ecx, ebx
mov word [esi], ax
call fcn.00406671
push edi
lea ecx, [esp + 0x290]
call fcn.004016d9
push 1
push 8
lea eax, [esp + 0x44]
mov byte [esp + 0xa28], 8
push eax
lea ecx, [esp + 0x298]
mov byte [esp + 0x48], 0x1e
call fcn.00401c52
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28c]
push 1
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
push 0x20
push eax
call fcn.00401c52
movzx eax, word [esp + 0x14]
lea ecx, [esp + 0x28c]
push 1
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
push 0x10
push eax
call fcn.00401c52
mov esi, dword [esp + 0x28c]
mov edi, dword [esp + 0x298]
call fcn.0040271a
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x18]
push edx
push edx
push ecx
push ecx
mov ecx, esp
push edx
push 8
push edx
mov dword [ecx], eax
mov ax, word [esp + 0x38]
push esi
mov word [ecx + 4], ax
mov ecx, ebx
push edi
call fcn.0040b2b6
cmp byte [esp + 0x18], 0
jne 0x40abae
mov eax, dword [esp + 0x10]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [esp + 0x20]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.004087a6
mov eax, dword [esp + 0x10]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [esp + 0x20]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.0040b585
lea ecx, [esp + 0x28c]
mov byte [esp + 0xa20], 7
call fcn.0040179e
lea ecx, [esp + 0x4b4]
jmp 0x40a774
mov eax, dword [esp + 0x14]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [esp + 0x24]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00408360
push dword [esp + 0x1c]
call fcn.004226f4
pop ecx
jmp 0x40ac2e
cmp edi, 2
jbe 0x40abff
cmp al, 0xc
je 0x40ac03
cmp al, 0x14
jb 0x40ac2e
push ecx
push edi
call fcn.0040694b
pop ecx
pop ecx
mov dword [eax + 0xc], esi
mov ecx, dword [esp + 0x10]
mov dword [eax + 2], ecx
mov cx, word [esp + 0x14]
mov word [eax + 6], cx
mov ecx, dword [esp + 0x28]
mov word [eax], cx
mov ecx, ebx
push eax
call fcn.00406671
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebp + 0xd]
call fcn.0040f0b8
mov esi, eax
mov dword [esp + 0x2c], eax
test esi, esi
jg 0x40a1aa
jmp 0x40acd8
mov eax, dword [ebp + 0x7ee]
push 8
pop edi
cmp eax, edi
je 0x40ac6a
cmp eax, 4
je 0x40ac6a
cmp eax, 1
je 0x40ac6a
cmp eax, 3
jne 0x40acb8
push 1
call fcn.0040692d
mov edx, eax
mov eax, dword [ebp + 0x7ee]
pop ecx
cmp eax, 4
jne 0x40ac87
mov ecx, dword [edx + 0x10]
mov byte [ecx], 0x1d
jmp 0x40ac96
cmp eax, edi
mov eax, dword [edx + 0x10]
jne 0x40ac93
mov byte [eax], 0x21
jmp 0x40ac96
mov byte [eax], 0x20
mov dword [edx + 0xc], edi
mov ecx, ebx
mov eax, dword [esp + 0x10]
mov dword [edx + 2], eax
mov ax, word [esp + 0x14]
mov word [edx + 6], ax
mov eax, dword [esp + 0x28]
push edx
mov word [edx], ax
call fcn.00406671
mov eax, dword [esp + 0x10]
push 0
push 1
push 0
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ax, word [esp + 0x28]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00406dbf
mov eax, dword [esp + 0x28]
movzx ecx, word [ebx + 7]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jb 0x409f86
mov al, 1
jmp 0x409cb2