Function at 0x40b390
Capabilities:
Encrypt data using xtea
Inspect section memory permissions
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
push esi
mov dword [ebp - 0x140], 0xf0
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp + 8]
sub ecx, 0xf0
mov dword [ebp - 0x13c], ecx
cmp dword [ebp - 0x140], 0
jbe 0x40b407
mov edx, dword [ebp - 0x278]
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x278]
add edx, 1
mov dword [ebp - 0x278], edx
mov eax, dword [ebp - 0x13c]
add eax, 1
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x140]
sub ecx, 1
mov dword [ebp - 0x140], ecx
jmp 0x40b3bf
lea edx, [ebp - 0x5c0]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0x148], ecx
lea edx, [ebp - 0x5bc]
mov dword [ebp - 0xdc], edx
mov eax, 0xec
shr eax, 2
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
jbe 0x40b48e
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx]
mov dword [ebp - 0x38c], edx
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax]
xor ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0xdc]
mov dword [edx], ecx
mov eax, dword [ebp - 0xdc]
add eax, 4
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0x38c]
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x144]
sub edx, 1
mov dword [ebp - 0x144], edx
jmp 0x40b435
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0xc0dec0df
je 0x40b4b0
jmp 0x40d30a
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
sub edx, dword [ecx + 0x18]
mov dword [ebp - 0x29c], edx
mov dword [ebp - 0x150], 0xe8
lea eax, [ebp - 0x478]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x150], 0
jbe 0x40b516
mov ecx, dword [ebp - 0x14c]
mov byte [ecx], 0
mov edx, dword [ebp - 0x14c]
add edx, 1
mov dword [ebp - 0x14c], edx
mov eax, dword [ebp - 0x150]
sub eax, 1
mov dword [ebp - 0x150], eax
jmp 0x40b4e4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2c]
add edx, 0xf
and edx, 0xfffffff0
mov dword [ebp - 0xcc], edx
cmp dword [ebp - 0xcc], 1
jb 0x40b53d
cmp dword [ebp - 0xcc], 0x280
jbe 0x40b547
jmp 0x40d30a
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x29c]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x390], edx
lea eax, [ebp - 0x840]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x390]
mov dword [ebp - 0x158], ecx
cmp dword [ebp - 0x15c], 0
jbe 0x40b5c5
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x158]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x154]
add edx, 1
mov dword [ebp - 0x154], edx
mov eax, dword [ebp - 0x158]
add eax, 1
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x15c]
sub ecx, 1
mov dword [ebp - 0x15c], ecx
jmp 0x40b57d
mov edx, dword [ebp - 0x32c]
mov dword [ebp - 0x30c], edx
lea eax, [ebp - 0x840]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xcc]
shr ecx, 2
mov dword [ebp - 0x160], ecx
cmp dword [ebp - 0x160], 0
jbe 0x40b645
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx]
mov dword [ebp - 0x330], eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx]
xor edx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0xb8]
mov dword [eax], edx
mov ecx, dword [ebp - 0xb8]
add ecx, 4
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0x330]
mov dword [ebp - 0x30c], edx
mov eax, dword [ebp - 0x160]
sub eax, 1
mov dword [ebp - 0x160], eax
jmp 0x40b5ec
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0xe0], 0
jmp 0x40b669
mov edx, dword [ebp - 0xe0]
add edx, 1
mov dword [ebp - 0xe0], edx
cmp dword [ebp - 0xe0], 0x22
jae 0x40b6da
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x2c]
lea edx, [ebp + ecx - 0x840]
cmp dword [ebp - 0x3c], edx
jb 0x40b68e
jmp 0x40d30a
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x418], ecx
mov edx, dword [ebp - 0x3c]
movsx eax, byte [edx]
test eax, eax
je 0x40b6cf
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2c]
lea ecx, [ebp + eax - 0x840]
cmp dword [ebp - 0x3c], ecx
jb 0x40b6cd
jmp 0x40d30a
jmp 0x40b69e
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
jmp 0x40b65a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x2c]
lea edx, [ebp + ecx - 0x840]
cmp dword [ebp - 0x3c], edx
je 0x40b6f6
jmp 0x40d30a
mov dword [ebp - 0x14], 0
mov eax, 2
imul ecx, eax, 0
mov edx, 0x6b
mov word [ebp + ecx - 0x328], dx
mov eax, 2
shl eax, 0
mov ecx, 0x65
mov word [ebp + eax - 0x328], cx
mov edx, 2
shl edx, 1
mov eax, 0x72
mov word [ebp + edx - 0x328], ax
mov ecx, 2
imul edx, ecx, 3
mov eax, 0x6e
mov word [ebp + edx - 0x328], ax
mov ecx, 2
shl ecx, 2
mov edx, 0x65
mov word [ebp + ecx - 0x328], dx
mov eax, 2
imul ecx, eax, 5
mov edx, 0x6c
mov word [ebp + ecx - 0x328], dx
mov eax, 2
imul ecx, eax, 6
mov edx, 0x33
mov word [ebp + ecx - 0x328], dx
mov eax, 2
imul ecx, eax, 7
mov edx, 0x32
mov word [ebp + ecx - 0x328], dx
mov eax, 2
shl eax, 3
mov ecx, 0x2e
mov word [ebp + eax - 0x328], cx
mov edx, 2
imul eax, edx, 9
mov ecx, 0x64
mov word [ebp + eax - 0x328], cx
mov edx, 2
imul eax, edx, 0xa
mov ecx, 0x6c
mov word [ebp + eax - 0x328], cx
mov edx, 2
imul eax, edx, 0xb
mov ecx, 0x6c
mov word [ebp + eax - 0x328], cx
mov edx, 2
imul eax, edx, 0xc
xor ecx, ecx
mov word [ebp + eax - 0x328], cx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x27c]
mov edx, dword [eax + 0xc8]
or edx, dword [ecx + 0xcc]
je 0x40b863
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc8]
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x42c], eax
mov ecx, 4
imul edx, ecx, 0x14
mov eax, dword [ebp + edx - 0x418]
push eax
call dword [ebp - 0x42c]
mov dword [ebp - 0x14], eax
jmp 0x40b954
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x280], ecx
mov edx, dword [ebp - 0x280]
mov eax, dword [ebp - 0x280]
mov ecx, dword [edx + 0xd0]
or ecx, dword [eax + 0xd4]
je 0x40b8b3
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x428], edx
lea eax, [ebp - 0x328]
push eax
call dword [ebp - 0x428]
mov dword [ebp - 0x14], eax
jmp 0x40b954
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x284], ecx
mov edx, dword [ebp - 0x284]
mov eax, dword [ebp - 0x284]
mov ecx, dword [edx + 0xd8]
or ecx, dword [eax + 0xdc]
je 0x40b909
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd8]
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x424], edx
mov eax, 4
imul ecx, eax, 0x14
mov edx, dword [ebp + ecx - 0x418]
push edx
call dword [ebp - 0x424]
mov dword [ebp - 0x14], eax
jmp 0x40b954
mov eax, dword [ebp - 8]
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
mov edx, dword [ebp - 0x288]
mov eax, dword [ecx + 0xe0]
or eax, dword [edx + 0xe4]
je 0x40b954
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xe0]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x420], ecx
lea edx, [ebp - 0x328]
push edx
call dword [ebp - 0x420]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b964
jmp 0x40d30a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28c], eax
mov ecx, dword [ebp - 0x28c]
mov edx, dword [ebp - 0x28c]
mov eax, dword [ecx + 0xe8]
or eax, dword [edx + 0xec]
je 0x40b9a4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xe8]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x41c], ecx
jmp 0x40bc9f
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x290], edx
mov eax, dword [ebp - 0x290]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x40b9ca
mov dword [ebp - 0x2c], 0
jmp 0x40bc83
mov edx, dword [ebp - 0x290]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
cmp dword [ecx], 0x4550
je 0x40b9f6
mov dword [ebp - 0x2c], 0
jmp 0x40bc83
mov edx, dword [ebp - 0xe4]
movzx eax, word [edx + 4]
cmp eax, 0x14c
jne 0x40ba27
mov ecx, dword [ebp - 0xe4]
movzx edx, word [ecx + 0x14]
cmp edx, 0xe0
je 0x40ba25
mov dword [ebp - 0x2c], 0
jmp 0x40bc83
jmp 0x40ba33
mov dword [ebp - 0x2c], 0
jmp 0x40bc83
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0xe4]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
cmp dword [ecx + 4], 0
jne 0x40ba63
mov dword [ebp - 0x2c], 0
jmp 0x40bc83
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x14]
add eax, dword [edx]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
cmp dword [ecx + 0x18], 0
je 0x40ba83
mov edx, dword [ebp - 0x64]
cmp dword [edx + 0x14], 0
jne 0x40ba8f
mov dword [ebp - 0x2c], 0
jmp 0x40bc83
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0xe8], 0xffffffff
mov dword [ebp - 0x164], 0
jmp 0x40baf0
mov ecx, dword [ebp - 0x164]
add ecx, 1
mov dword [ebp - 0x164], ecx
mov edx, dword [ebp - 0x168]
add edx, 4
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x16c]
add eax, 2
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x164]
cmp edx, dword [ecx + 0x18]
jae 0x40bc01
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax]
mov dword [ebp - 0xb4], ecx
mov edx, 4
imul eax, edx, 0x17
mov ecx, dword [ebp + eax - 0x418]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
movsx eax, byte [edx]
test eax, eax
je 0x40bba6
mov ecx, dword [ebp - 0xb4]
movsx edx, byte [ecx]
test edx, edx
je 0x40bba6
mov eax, dword [ebp - 0x90]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0xb4]
movsx eax, byte [edx]
cmp ecx, eax
jge 0x40bb64
mov dword [ebp - 0xbc], 0xffffffff
jmp 0x40bbe2
mov ecx, dword [ebp - 0x90]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0xb4]
movsx ecx, byte [eax]
cmp edx, ecx
jle 0x40bb86
mov dword [ebp - 0xbc], 1
jmp 0x40bbe2
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0xb4]
add eax, 1
mov dword [ebp - 0xb4], eax
jmp 0x40bb28
mov ecx, dword [ebp - 0xb4]
movsx edx, byte [ecx]
test edx, edx
je 0x40bbbf
mov dword [ebp - 0xbc], 0xffffffff
jmp 0x40bbe2
mov eax, dword [ebp - 0x90]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40bbd8
mov dword [ebp - 0xbc], 1
jmp 0x40bbe2
mov dword [ebp - 0xbc], 0
cmp dword [ebp - 0xbc], 0
jne 0x40bbfc
mov edx, dword [ebp - 0x16c]
movzx eax, word [edx]
mov dword [ebp - 0xe8], eax
jmp 0x40bc01
jmp 0x40bac3
cmp dword [ebp - 0xe8], 0xffffffff
jne 0x40bc13
mov dword [ebp - 0x2c], 0
jmp 0x40bc83
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0xe8]
cmp edx, dword [ecx + 0x14]
jbe 0x40bc2a
mov dword [ebp - 0x2c], 0
jmp 0x40bc83
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0xe8]
lea eax, [ecx + edx*4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x170], edx
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x170]
cmp ecx, dword [eax]
jb 0x40bc77
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc0]
add eax, dword [ecx + 4]
cmp dword [ebp - 0x170], eax
jae 0x40bc77
mov dword [ebp - 0x2c], 0
jmp 0x40bc83
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x170]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x40bc9f
jmp 0x40d30a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x294], ecx
mov edx, dword [ebp - 0x294]
mov eax, dword [ebp - 0x294]
mov ecx, dword [edx + 0xc8]
or ecx, dword [eax + 0xcc]
jne 0x40bcf5
mov edx, 4
imul eax, edx, 0x18
mov ecx, dword [ebp + eax - 0x418]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [ebp - 0x41c]
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
jne 0x40bcf5
jmp 0x40d30a
mov eax, 4
imul ecx, eax, 0x19
mov edx, dword [ebp + ecx - 0x418]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0x41c]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x40bd28
jmp 0x40d30a
mov ecx, 4
imul edx, ecx, 0x15
mov eax, dword [ebp + edx - 0x418]
push eax
call dword [ebp - 0x424]
mov dword [ebp - 0x298], eax
cmp dword [ebp - 0x298], 0
jne 0x40bd57
jmp 0x40d30a
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0xec], 0
jmp 0x40bd7b
mov edx, dword [ebp - 0xec]
add edx, 1
mov dword [ebp - 0xec], edx
cmp dword [ebp - 0xec], 3
jae 0x40bdc1
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp + eax*4 - 0x418]
push ecx
mov edx, dword [ebp - 0x298]
push edx
call dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov edx, dword [ebp - 0x40]
cmp dword [edx], 0
jne 0x40bdb6
jmp 0x40d30a
mov eax, dword [ebp - 0x40]
add eax, 4
mov dword [ebp - 0x40], eax
jmp 0x40bd6c
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0xf0], 0
jmp 0x40bde5
mov edx, dword [ebp - 0xf0]
add edx, 1
mov dword [ebp - 0xf0], edx
cmp dword [ebp - 0xf0], 0x10
jae 0x40be28
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp + eax*4 - 0x40c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov edx, dword [ebp - 0x40]
cmp dword [edx], 0
jne 0x40be1d
jmp 0x40d30a
mov eax, dword [ebp - 0x40]
add eax, 4
mov dword [ebp - 0x40], eax
jmp 0x40bdd6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
and edx, 0x20
jne 0x40be95
call fcn.0040b380
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
je 0x40be7b
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 0xc4]
jne 0x40be7b
mov edx, dword [ebp - 0xc4]
cmp dword [edx + 0x30], 0
je 0x40be7b
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 0x30]
movzx edx, byte [ecx + 2]
test edx, edx
jne 0x40be7b
mov byte [ebp - 0x1d], 0
jmp 0x40be7f
mov byte [ebp - 0x1d], 1
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x40be95
mov byte [ebp - 1], 0x54
jmp 0x40d3e5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xa8]
and edx, 1
je 0x40beff
lea eax, [ebp + 4]
add eax, 4
mov dword [ebp - 0xc8], eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx + ecx]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
add ecx, 0x24
mov dword [ebp - 0xc8], ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x334], ecx
cmp dword [ebp - 0x334], 1
je 0x40beff
jmp 0x40d215
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x34]
push eax
push 1
call dword [ebp - 0x478]
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x40bf28
mov byte [ebp - 1], 0x57
jmp 0x40d3e5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x17c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x29c]
add ecx, dword [eax + 0x30]
mov dword [ebp - 0x338], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x174], edx
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x17c], 0
jbe 0x40bfa3
mov ecx, dword [ebp - 0x174]
mov edx, dword [ebp - 0x178]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x174]
add ecx, 1
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x178]
add edx, 1
mov dword [ebp - 0x178], edx
mov eax, dword [ebp - 0x17c]
sub eax, 1
mov dword [ebp - 0x17c], eax
jmp 0x40bf5b
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x33c], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 8]
add ecx, 0x98
mov dword [ebp - 0x2a0], ecx
mov edx, dword [ebp - 0x33c]
shr edx, 3
mov dword [ebp - 0x340], edx
mov dword [ebp - 0x2a4], 0x55555555
mov dword [ebp - 0x2a8], 0x55555555
mov dword [ebp - 0x114], 0
jmp 0x40c005
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
cmp ecx, dword [ebp - 0x340]
jae 0x40c157
mov edx, dword [ebp - 0x114]
shl edx, 1
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xf8]
mov eax, dword [edx + ecx*4 + 4]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x348], ecx
mov dword [ebp - 0x94], 0xc6ef3720
mov dword [ebp - 0x180], 0
jmp 0x40c081
mov edx, dword [ebp - 0x180]
add edx, 1
mov dword [ebp - 0x180], edx
cmp dword [ebp - 0x180], 0x20
jae 0x40c109
mov eax, dword [ebp - 0x68]
shl eax, 4
mov ecx, dword [ebp - 0x68]
shr ecx, 5
xor eax, ecx
add eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x94]
shr edx, 0xb
and edx, 3
mov ecx, dword [ebp - 0x2a0]
mov esi, dword [ebp - 0x94]
add esi, dword [ecx + edx*4]
xor eax, esi
mov edx, dword [ebp - 0x6c]
sub edx, eax
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x94]
add eax, 0x61c88647
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x6c]
shl ecx, 4
mov edx, dword [ebp - 0x6c]
shr edx, 5
xor ecx, edx
add ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x94]
and eax, 3
mov edx, dword [ebp - 0x2a0]
mov esi, dword [ebp - 0x94]
add esi, dword [edx + eax*4]
xor ecx, esi
mov eax, dword [ebp - 0x68]
sub eax, ecx
mov dword [ebp - 0x68], eax
jmp 0x40c072
mov ecx, dword [ebp - 0x68]
xor ecx, dword [ebp - 0x2a4]
mov edx, dword [ebp - 0xf4]
mov eax, dword [ebp - 0xf8]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 0x6c]
xor ecx, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0xf4]
mov eax, dword [ebp - 0xf8]
mov dword [eax + edx*4 + 4], ecx
mov ecx, dword [ebp - 0x344]
mov dword [ebp - 0x2a4], ecx
mov edx, dword [ebp - 0x348]
mov dword [ebp - 0x2a8], edx
jmp 0x40bff6
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x35c], ecx
mov edx, dword [ebp - 8]
mov dword [edx + 0x44], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x840]
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0xfc], 0
jmp 0x40c19b
mov ecx, dword [ebp - 0xfc]
add ecx, 1
mov dword [ebp - 0xfc], ecx
mov edx, dword [ebp - 0xfc]
cmp edx, dword [ebp - 0xcc]
jae 0x40c20b
mov eax, dword [ebp - 0x34c]
add eax, dword [ebp - 0xfc]
movzx ecx, byte [eax]
shl ecx, 0x18
xor ecx, dword [ebp - 0x44]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x184], 8
jmp 0x40c1dc
mov edx, dword [ebp - 0x184]
sub edx, 1
mov dword [ebp - 0x184], edx
cmp dword [ebp - 0x184], 0
jle 0x40c209
mov eax, dword [ebp - 0x44]
and eax, 0x80000000
je 0x40c1ff
mov ecx, dword [ebp - 0x44]
shl ecx, 1
xor ecx, 0x488781ed
mov dword [ebp - 0x44], ecx
jmp 0x40c207
mov edx, dword [ebp - 0x44]
shl edx, 1
mov dword [ebp - 0x44], edx
jmp 0x40c1cd
jmp 0x40c18c
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x48], ecx
lea edx, [ebp - 0x5c0]
mov dword [ebp - 0x350], edx
mov dword [ebp - 0x100], 0
jmp 0x40c23e
mov eax, dword [ebp - 0x100]
add eax, 1
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0xf0
jae 0x40c2ad
mov ecx, dword [ebp - 0x350]
add ecx, dword [ebp - 0x100]
movzx edx, byte [ecx]
shl edx, 0x18
xor edx, dword [ebp - 0x48]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x188], 8
jmp 0x40c27d
mov eax, dword [ebp - 0x188]
sub eax, 1
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jle 0x40c2ab
mov ecx, dword [ebp - 0x48]
and ecx, 0x80000000
je 0x40c2a1
mov edx, dword [ebp - 0x48]
shl edx, 1
xor edx, 0x488781ed
mov dword [ebp - 0x48], edx
jmp 0x40c2a9
mov eax, dword [ebp - 0x48]
shl eax, 1
mov dword [ebp - 0x48], eax
jmp 0x40c26e
jmp 0x40c22f
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x354], eax
mov dword [ebp - 0x104], 0
jmp 0x40c2dd
mov ecx, dword [ebp - 0x104]
add ecx, 1
mov dword [ebp - 0x104], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
add eax, 0xf
and eax, 0xfffffff0
cmp dword [ebp - 0x104], eax
jae 0x40c357
mov ecx, dword [ebp - 0x354]
add ecx, dword [ebp - 0x104]
movzx edx, byte [ecx]
shl edx, 0x18
xor edx, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x18c], 8
jmp 0x40c324
mov eax, dword [ebp - 0x18c]
sub eax, 1
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jle 0x40c352
mov ecx, dword [ebp - 0x4c]
and ecx, 0x80000000
je 0x40c348
mov edx, dword [ebp - 0x4c]
shl edx, 1
xor edx, 0x488781ed
mov dword [ebp - 0x4c], edx
jmp 0x40c350
mov eax, dword [ebp - 0x4c]
shl eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x40c315
jmp 0x40c2ce
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x358], eax
mov dword [ebp - 0x108], 0
jmp 0x40c387
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x108]
cmp eax, dword [edx + 0x34]
jae 0x40c3f8
mov ecx, dword [ebp - 0x358]
add ecx, dword [ebp - 0x108]
movzx edx, byte [ecx]
shl edx, 0x18
xor edx, dword [ebp - 0x50]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x190], 8
jmp 0x40c3c8
mov eax, dword [ebp - 0x190]
sub eax, 1
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
jle 0x40c3f6
mov ecx, dword [ebp - 0x50]
and ecx, 0x80000000
je 0x40c3ec
mov edx, dword [ebp - 0x50]
shl edx, 1
xor edx, 0x488781ed
mov dword [ebp - 0x50], edx
jmp 0x40c3f4
mov eax, dword [ebp - 0x50]
shl eax, 1
mov dword [ebp - 0x50], eax
jmp 0x40c3b9
jmp 0x40c378
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x35c]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x70]
cmp edx, dword [ecx + 0x44]
je 0x40c423
mov byte [ebp - 1], 0x51
jmp 0x40d3e5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x98], edx
cmp dword [ebp - 0x2ac], 0x40
jb 0x40c452
mov eax, dword [ebp - 0x98]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x40c45e
mov dword [ebp - 0x10], 0
jmp 0x40ccf8
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x34]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x3c]
add edx, 0xf8
cmp dword [ebp - 0x2ac], edx
jb 0x40c48f
mov eax, dword [ebp - 0x58]
cmp dword [eax], 0x4550
je 0x40c49b
mov dword [ebp - 0x10], 0
jmp 0x40ccf8
push 4
push 0x2000
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x34]
push ecx
call dword [ebp - 0x444]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40c4d8
push 4
push 0x2000
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x50]
push eax
push 0
call dword [ebp - 0x444]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40c4ea
mov dword [ebp - 0x10], 0
jmp 0x40ccf8
mov dword [ebp - 0x198], 0xc
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x194], ecx
cmp dword [ebp - 0x198], 0
jbe 0x40c532
mov edx, dword [ebp - 0x194]
mov byte [edx], 0
mov eax, dword [ebp - 0x194]
add eax, 1
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x198]
sub ecx, 1
mov dword [ebp - 0x198], ecx
jmp 0x40c500
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x88], edx
push 4
push 0x1000
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [ebp - 0x444]
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x58]
add ecx, dword [edx + 0x54]
mov dword [ebp - 0x360], ecx
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 0x19c], ecx
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x1a0], edx
cmp dword [ebp - 0x1a4], 0
jbe 0x40c5da
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x1a0]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x19c]
add eax, 1
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x1a0]
add ecx, 1
mov dword [ebp - 0x1a0], ecx
mov edx, dword [ebp - 0x1a4]
sub edx, 1
mov dword [ebp - 0x1a4], edx
jmp 0x40c592
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x2b0]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x2b4], ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x84]
movzx ecx, word [eax + 0x14]
lea edx, [edx + ecx + 0x18]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x1a8], 0
jmp 0x40c642
mov eax, dword [ebp - 0x1a8]
add eax, 1
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x28
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x84]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x1a8], eax
jge 0x40c797
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 0x10], 0
jne 0x40c6f0
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
jbe 0x40c6eb
push 4
push 0x1000
mov ecx, dword [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x2b4]
add eax, dword [edx + 0xc]
push eax
call dword [ebp - 0x444]
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b4], ecx
mov edx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1b0], edx
cmp dword [ebp - 0x1b4], 0
jbe 0x40c6eb
mov eax, dword [ebp - 0x1b0]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1b0]
add ecx, 1
mov dword [ebp - 0x1b0], ecx
mov edx, dword [ebp - 0x1b4]
sub edx, 1
mov dword [ebp - 0x1b4], edx
jmp 0x40c6b9
jmp 0x40c62a
push 4
push 0x1000
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x2b4]
add eax, dword [edx + 0xc]
push eax
call dword [ebp - 0x444]
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x34]
add ecx, dword [eax + 0x14]
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1bc], edx
mov eax, dword [ebp - 0x364]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c4], 0
jbe 0x40c792
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1c0]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x1bc]
add ecx, 1
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x1c0]
add edx, 1
mov dword [ebp - 0x1c0], edx
mov eax, dword [ebp - 0x1c4]
sub eax, 1
mov dword [ebp - 0x1c4], eax
jmp 0x40c74a
jmp 0x40c62a
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x24]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 0x1d0], edx
je 0x40c91f
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x84]
mov edx, 8
imul eax, edx, 5
lea ecx, [ecx + eax + 0x78]
mov dword [ebp - 0x2b8], ecx
mov edx, dword [ebp - 0x2b8]
cmp dword [edx + 4], 0
jbe 0x40c91f
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2bc]
add ecx, dword [eax]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
cmp dword [edx], 0
jbe 0x40c91f
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x2bc]
add ecx, dword [eax]
mov dword [ebp - 0x2c4], ecx
mov edx, dword [ebp - 0x74]
add edx, 8
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x1c8], 0
jmp 0x40c844
mov eax, dword [ebp - 0x1c8]
add eax, 1
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x10c]
add ecx, 2
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
cmp dword [ebp - 0x1c8], eax
jae 0x40c90e
mov ecx, dword [ebp - 0x10c]
movzx edx, word [ecx]
sar edx, 0xc
mov dword [ebp - 0x368], edx
mov eax, dword [ebp - 0x10c]
movzx ecx, word [eax]
and ecx, 0xfff
mov dword [ebp - 0x2c8], ecx
mov edx, dword [ebp - 0x368]
mov dword [ebp - 0x1cc], edx
cmp dword [ebp - 0x1cc], 0
je 0x40c8ab
cmp dword [ebp - 0x1cc], 3
je 0x40c8ad
cmp dword [ebp - 0x1cc], 0xa
je 0x40c8d7
jmp 0x40c908
jmp 0x40c909
mov eax, dword [ebp - 0x2c4]
add eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
mov edx, dword [ecx]
add edx, dword [ebp - 0x1d0]
mov eax, dword [ebp - 0x2c0]
mov dword [eax], edx
jmp 0x40c909
mov ecx, dword [ebp - 0x2c4]
add ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], ecx
mov eax, dword [ebp - 0x1d0]
cdq
mov ecx, dword [ebp - 0x2cc]
add eax, dword [ecx]
adc edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x2cc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x40c909
int3
jmp 0x40c826
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
add eax, dword [edx + 4]
mov dword [ebp - 0x74], eax
jmp 0x40c7f1
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x84]
mov eax, 8
shl eax, 0
lea ecx, [edx + eax + 0x78]
mov dword [ebp - 0x2d0], ecx
mov edx, dword [ebp - 0x2d0]
cmp dword [edx + 4], 0
jbe 0x40ca96
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [ebp - 0x7c]
add ecx, dword [eax]
mov dword [ebp - 0x30], ecx
jmp 0x40c969
mov edx, dword [ebp - 0x30]
add edx, 0x14
mov dword [ebp - 0x30], edx
push 0x14
mov eax, dword [ebp - 0x30]
push eax
call dword [ebp - 0x438]
test eax, eax
jne 0x40ca96
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0xc], 0
je 0x40ca96
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x7c]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
push ecx
call dword [ebp - 0x424]
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0
jne 0x40c9be
mov byte [ebp - 0x15], 0
jmp 0x40ca9a
mov edx, dword [ebp - 0x30]
cmp dword [edx], 0
je 0x40c9e2
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x7c]
add ecx, dword [eax]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x7c]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x9c], eax
jmp 0x40c9fd
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x7c]
add edx, dword [ecx + 0x10]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x7c]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x9c], ecx
jmp 0x40ca17
mov edx, dword [ebp - 0x78]
add edx, 4
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x9c]
add eax, 4
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x78]
cmp dword [ecx], 0
je 0x40ca91
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
and eax, 0x80000000
je 0x40ca4e
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x1d4]
push eax
call dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x9c]
mov dword [ecx], eax
jmp 0x40ca7b
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
add eax, dword [edx]
mov dword [ebp - 0x370], eax
mov ecx, dword [ebp - 0x370]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x1d4]
push edx
call dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x9c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x9c]
cmp dword [edx], 0
jne 0x40ca8c
mov byte [ebp - 0x15], 0
jmp 0x40ca9a
jmp 0x40c9ff
jmp 0x40c960
mov byte [ebp - 0x15], 1
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x40caae
mov dword [ebp - 0x10], 0
jmp 0x40ccf8
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x84]
movzx eax, word [edx + 0x14]
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x1d8], 0
jmp 0x40cae9
mov edx, dword [ebp - 0x1d8]
add edx, 1
mov dword [ebp - 0x1d8], edx
mov eax, dword [ebp - 0x1c]
add eax, 0x28
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x84]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x1d8], edx
jge 0x40cc9c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
je 0x40cb19
mov dword [ebp - 0x2d4], 1
jmp 0x40cb23
mov dword [ebp - 0x2d4], 0
mov dl, byte [ebp - 0x2d4]
mov byte [ebp - 0x5e], dl
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
and ecx, 0x40000000
je 0x40cb46
mov dword [ebp - 0x2d8], 1
jmp 0x40cb50
mov dword [ebp - 0x2d8], 0
mov dl, byte [ebp - 0x2d8]
mov byte [ebp - 0x5d], dl
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
and ecx, 0x80000000
je 0x40cb73
mov dword [ebp - 0x2dc], 1
jmp 0x40cb7d
mov dword [ebp - 0x2dc], 0
mov dl, byte [ebp - 0x2dc]
mov byte [ebp - 0x1e], dl
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
je 0x40cbb8
push 0x4000
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x1c]
add ecx, dword [edx + 0xc]
push ecx
call dword [ebp - 0x440]
jmp 0x40cad1
movzx eax, byte [ebp - 0x5d]
test eax, eax
je 0x40cbda
movzx ecx, byte [ebp - 0x1e]
test ecx, ecx
je 0x40cbd1
mov dword [ebp - 0x5c], 4
jmp 0x40cbd8
mov dword [ebp - 0x5c], 2
jmp 0x40cbf2
movzx edx, byte [ebp - 0x1e]
test edx, edx
je 0x40cbeb
mov dword [ebp - 0x5c], 8
jmp 0x40cbf2
mov dword [ebp - 0x5c], 1
movzx eax, byte [ebp - 0x5e]
test eax, eax
je 0x40cc03
mov ecx, dword [ebp - 0x5c]
shl ecx, 4
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
je 0x40cc1c
mov ecx, dword [ebp - 0x5c]
or ecx, 0x200
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x40cc69
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x24]
and edx, 0x40
je 0x40cc4d
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x110], ecx
jmp 0x40cc69
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x24]
and eax, 0x80
je 0x40cc69
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x110], edx
cmp dword [ebp - 0x110], 0
jbe 0x40cc97
lea eax, [ebp - 0x47c]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x1c]
add ecx, dword [edx + 0xc]
push ecx
call dword [ebp - 0x43c]
jmp 0x40cad1
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x28], 0
je 0x40ccf2
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x24]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x2e0], edx
jne 0x40ccc5
mov dword [ebp - 0x10], 0
jmp 0x40ccf8
push 0
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [ebp - 0x2e0]
mov dword [ebp - 0x374], eax
cmp dword [ebp - 0x374], 0
jne 0x40cceb
mov dword [ebp - 0x10], 0
jmp 0x40ccf8
mov byte [ebp - 0x8c], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1dc], ecx
cmp dword [ebp - 0x1e0], 0
jbe 0x40cd3f
mov edx, dword [ebp - 0x1dc]
mov byte [edx], 0
mov eax, dword [ebp - 0x1dc]
add eax, 1
mov dword [ebp - 0x1dc], eax
mov ecx, dword [ebp - 0x1e0]
sub ecx, 1
mov dword [ebp - 0x1e0], ecx
jmp 0x40cd0d
mov edx, dword [ebp - 0x34]
push edx
call dword [ebp - 0x474]
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x40cd60
mov byte [ebp - 1], 0x42
jmp 0x40d3e5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp - 0x2e4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x40cd86
mov dword [ebp - 0x28], 0
jmp 0x40d03f
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
cmp dword [edx], 0x4550
je 0x40cdb2
mov dword [ebp - 0x28], 0
jmp 0x40d03f
mov eax, dword [ebp - 0x138]
movzx ecx, word [eax + 4]
cmp ecx, 0x14c
jne 0x40cde3
mov edx, dword [ebp - 0x138]
movzx eax, word [edx + 0x14]
cmp eax, 0xe0
je 0x40cde1
mov dword [ebp - 0x28], 0
jmp 0x40d03f
jmp 0x40cdef
mov dword [ebp - 0x28], 0
jmp 0x40d03f
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x138]
lea ecx, [eax + edx + 0x78]
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0xd4]
cmp dword [edx + 4], 0
jne 0x40ce1f
mov dword [ebp - 0x28], 0
jmp 0x40d03f
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
cmp dword [edx + 0x18], 0
je 0x40ce3f
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x14], 0
jne 0x40ce4b
mov dword [ebp - 0x28], 0
jmp 0x40d03f
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x1e8], edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 0x118], 0xffffffff
mov dword [ebp - 0x1e4], 0
jmp 0x40ceac
mov edx, dword [ebp - 0x1e4]
add edx, 1
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp - 0x1e8]
add eax, 4
mov dword [ebp - 0x1e8], eax
mov ecx, dword [ebp - 0x1ec]
add ecx, 2
mov dword [ebp - 0x1ec], ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x1e4]
cmp eax, dword [edx + 0x18]
jae 0x40cfbd
mov ecx, dword [ebp - 0x1e8]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx]
mov dword [ebp - 0xa0], edx
mov eax, 4
imul ecx, eax, 0x21
mov edx, dword [ebp + ecx - 0x418]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40cf62
mov edx, dword [ebp - 0xa0]
movsx eax, byte [edx]
test eax, eax
je 0x40cf62
mov ecx, dword [ebp - 0xa4]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0xa0]
movsx ecx, byte [eax]
cmp edx, ecx
jge 0x40cf20
mov dword [ebp - 0xd0], 0xffffffff
jmp 0x40cf9e
mov edx, dword [ebp - 0xa4]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0xa0]
movsx edx, byte [ecx]
cmp eax, edx
jle 0x40cf42
mov dword [ebp - 0xd0], 1
jmp 0x40cf9e
mov eax, dword [ebp - 0xa4]
add eax, 1
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa0]
add ecx, 1
mov dword [ebp - 0xa0], ecx
jmp 0x40cee4
mov edx, dword [ebp - 0xa0]
movsx eax, byte [edx]
test eax, eax
je 0x40cf7b
mov dword [ebp - 0xd0], 0xffffffff
jmp 0x40cf9e
mov ecx, dword [ebp - 0xa4]
movsx edx, byte [ecx]
test edx, edx
je 0x40cf94
mov dword [ebp - 0xd0], 1
jmp 0x40cf9e
mov dword [ebp - 0xd0], 0
cmp dword [ebp - 0xd0], 0
jne 0x40cfb8
mov eax, dword [ebp - 0x1ec]
movzx ecx, word [eax]
mov dword [ebp - 0x118], ecx
jmp 0x40cfbd
jmp 0x40ce7f
cmp dword [ebp - 0x118], 0xffffffff
jne 0x40cfcf
mov dword [ebp - 0x28], 0
jmp 0x40d03f
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x118]
cmp eax, dword [edx + 0x14]
jbe 0x40cfe6
mov dword [ebp - 0x28], 0
jmp 0x40d03f
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x118]
lea ecx, [edx + eax*4]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0x1f0]
cmp edx, dword [ecx]
jb 0x40d033
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xd4]
add ecx, dword [edx + 4]
cmp dword [ebp - 0x1f0], ecx
jae 0x40d033
mov dword [ebp - 0x28], 0
jmp 0x40d03f
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2e8], ecx
cmp dword [ebp - 0x2e8], 0
jne 0x40d05f
mov byte [ebp - 1], 0x43
jmp 0x40d3e5
push 0xf0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x2e8]
mov byte [ebp - 1], al
movsx ecx, byte [ebp - 1]
cmp ecx, 0x30
je 0x40d088
jmp 0x40d3e5
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2ec], edx
mov eax, dword [ebp - 0x2ec]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x40d0a7
jmp 0x40d215
mov edx, dword [ebp - 0x2ec]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx], 0x4550
je 0x40d0cc
jmp 0x40d215
mov edx, dword [ebp - 0xa8]
movzx eax, word [edx + 4]
cmp eax, 0x14c
jne 0x40d0f6
mov ecx, dword [ebp - 0xa8]
movzx edx, word [ecx + 0x14]
cmp edx, 0xe0
je 0x40d0f4
jmp 0x40d215
jmp 0x40d0fb
jmp 0x40d215
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx + 0x28], 0
je 0x40d13d
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0x11c]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x2f0], eax
jne 0x40d12c
jmp 0x40d215
push 0
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [ebp - 0x2f0]
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0xa8]
lea ecx, [eax + edx + 0x78]
mov dword [ebp - 0x2f4], ecx
mov edx, dword [ebp - 0x2f4]
cmp dword [edx + 4], 0
jbe 0x40d1e9
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x11c]
add ecx, dword [eax]
mov dword [ebp - 0xd8], ecx
jmp 0x40d18a
mov edx, dword [ebp - 0xd8]
add edx, 0x14
mov dword [ebp - 0xd8], edx
push 0x14
mov eax, dword [ebp - 0xd8]
push eax
call dword [ebp - 0x438]
test eax, eax
jne 0x40d1e9
mov ecx, dword [ebp - 0xd8]
cmp dword [ecx + 0xc], 0
je 0x40d1e9
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x11c]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x378]
push ecx
call dword [ebp - 0x42c]
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
je 0x40d1e7
mov edx, dword [ebp - 0x2f8]
push edx
call dword [ebp - 0x430]
jmp 0x40d17b
push 0x8000
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x440]
cmp eax, 1
jne 0x40d20b
mov dword [ebp - 0x37c], 1
jmp 0x40d215
mov dword [ebp - 0x37c], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
add edx, dword [ebp - 0xac]
mov dword [ebp - 0x380], edx
mov dword [ebp - 0x1f8], 0xf0
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x1f4], eax
cmp dword [ebp - 0x1f8], 0
jbe 0x40d26f
mov ecx, dword [ebp - 0x1f4]
mov byte [ecx], 0
mov edx, dword [ebp - 0x1f4]
add edx, 1
mov dword [ebp - 0x1f4], edx
mov eax, dword [ebp - 0x1f8]
sub eax, 1
mov dword [ebp - 0x1f8], eax
jmp 0x40d23d
mov dword [ebp - 0x200], 0xe8
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x1fc], ecx
cmp dword [ebp - 0x200], 0
jbe 0x40d2b7
mov edx, dword [ebp - 0x1fc]
mov byte [edx], 0
mov eax, dword [ebp - 0x1fc]
add eax, 1
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x200]
sub ecx, 1
mov dword [ebp - 0x200], ecx
jmp 0x40d285
mov dword [ebp - 0x208], 0x280
lea edx, [ebp - 0x840]
mov dword [ebp - 0x204], edx
cmp dword [ebp - 0x208], 0
jbe 0x40d2ff
mov eax, dword [ebp - 0x204]
mov byte [eax], 0
mov ecx, dword [ebp - 0x204]
add ecx, 1
mov dword [ebp - 0x204], ecx
mov edx, dword [ebp - 0x208]
sub edx, 1
mov dword [ebp - 0x208], edx
jmp 0x40d2cd
mov eax, dword [ebp - 0x380]
jmp 0x40da7c
mov dword [ebp - 0x210], 0xf0
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x210], 0
jbe 0x40d352
mov ecx, dword [ebp - 0x20c]
mov byte [ecx], 0
mov edx, dword [ebp - 0x20c]
add edx, 1
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp - 0x210]
sub eax, 1
mov dword [ebp - 0x210], eax
jmp 0x40d320
mov dword [ebp - 0x218], 0xe8
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x214], ecx
cmp dword [ebp - 0x218], 0
jbe 0x40d39a
mov edx, dword [ebp - 0x214]
mov byte [edx], 0
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x218]
sub ecx, 1
mov dword [ebp - 0x218], ecx
jmp 0x40d368
mov dword [ebp - 0x220], 0x280
lea edx, [ebp - 0x840]
mov dword [ebp - 0x21c], edx
cmp dword [ebp - 0x220], 0
jbe 0x40d3e2
mov eax, dword [ebp - 0x21c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x21c]
add ecx, 1
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x220]
sub edx, 1
mov dword [ebp - 0x220], edx
jmp 0x40d3b0
int3
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x388], eax
call dword [ebp - 0x468]
mov dword [ebp - 0x22c], eax
movsx ecx, byte [ebp - 1]
cmp ecx, 0x35
je 0x40d418
movsx edx, byte [ebp - 1]
cmp edx, 0x30
je 0x40d418
movsx eax, byte [ebp - 1]
cmp eax, 0x45
jne 0x40d422
jmp 0x40d995
mov ecx, 4
imul edx, ecx, 0x1d
mov eax, dword [ebp + edx - 0x418]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x4d0]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x120]
movsx eax, byte [edx]
test eax, eax
je 0x40d480
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x120]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x120]
add edx, 1
mov dword [ebp - 0x120], edx
jmp 0x40d443
mov eax, dword [ebp - 0x124]
mov byte [eax], 0
mov ecx, 4
imul edx, ecx, 0x1e
mov eax, dword [ebp + edx - 0x418]
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x128]
movsx eax, byte [edx]
test eax, eax
je 0x40d4e7
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x128]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x12c]
add ecx, 1
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
jmp 0x40d4aa
mov eax, dword [ebp - 0x12c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x22c]
add ecx, 0xff98
mov dword [ebp - 0x22c], ecx
lea edx, [ebp - 0x4b0]
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x228], 0
mov eax, dword [ebp - 0x224]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40d545
mov edx, dword [ebp - 0x228]
add edx, 1
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
jmp 0x40d518
mov ecx, dword [ebp - 0x228]
lea edx, [ebp + ecx - 0x4b0]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
sub eax, 1
mov dword [ebp - 0xb0], eax
lea ecx, [ebp - 0x4b0]
cmp dword [ebp - 0xb0], ecx
jbe 0x40d645
mov edx, dword [ebp - 0xb0]
movsx eax, byte [edx]
cmp eax, 0x3a
jne 0x40d640
mov ecx, dword [ebp - 0xb0]
mov dl, byte [ebp - 1]
mov byte [ecx - 1], dl
mov eax, dword [ebp - 0xb0]
add eax, 1
mov dword [ebp - 0x384], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x134], 0x3b9aca00
mov dword [ebp - 0x130], 0
jmp 0x40d5d7
mov edx, dword [ebp - 0x130]
add edx, 1
mov dword [ebp - 0x130], edx
cmp dword [ebp - 0x130], 0xa
jge 0x40d63e
mov eax, dword [ebp - 0x230]
xor edx, edx
div dword [ebp - 0x134]
mov dword [ebp - 0x2fc], eax
movsx eax, byte [ebp - 0x2fc]
add eax, 0x30
mov ecx, dword [ebp - 0x384]
add ecx, dword [ebp - 0x130]
mov byte [ecx], al
mov edx, dword [ebp - 0x2fc]
imul edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x230]
sub eax, edx
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x134]
xor edx, edx
mov ecx, 0xa
div ecx
mov dword [ebp - 0x134], eax
jmp 0x40d5c8
jmp 0x40d645
jmp 0x40d558
mov edx, dword [ebp - 8]
mov dword [ebp - 0x300], edx
mov eax, dword [ebp - 0x300]
cmp dword [eax + 0x14], 0
ja 0x40d666
mov ecx, dword [ebp - 0x300]
cmp dword [ecx + 0x10], 0xffffffff
jbe 0x40d66f
mov byte [ebp - 9], 0x35
jmp 0x40d834
mov edx, 4
imul eax, edx, 0x1c
mov ecx, dword [ebp + eax - 0x418]
push ecx
push 0
push 0x100000
call dword [ebp - 0x464]
mov dword [ebp - 0x23c], eax
mov edx, 4
imul eax, edx, 0x1b
mov ecx, dword [ebp + eax - 0x418]
push ecx
push 0
push 2
call dword [ebp - 0x460]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x23c], 0
je 0x40d6c4
cmp dword [ebp - 0x238], 0
jne 0x40d6cd
mov byte [ebp - 9], 0x35
jmp 0x40d834
push 0x1388
mov edx, dword [ebp - 0x23c]
push edx
call dword [ebp - 0x458]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x40d6f7
mov byte [ebp - 9], 0x47
jmp 0x40d834
push 0
push 0
push 0
push 2
mov eax, dword [ebp - 0x238]
push eax
call dword [ebp - 0x45c]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x40d724
mov byte [ebp - 9], 0x48
jmp 0x40d834
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x90], 2
je 0x40d742
mov byte [ebp - 9], 0x49
jmp 0x40d834
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x94], 0
je 0x40d757
mov byte [ebp - 9], 0x4a
jmp 0x40d834
push 0
push 0
push 0
push 0
call dword [ebp - 0x454]
mov dword [ebp - 0x240], eax
call dword [ebp - 0x448]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x98], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0xa0], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
mov dword [edx + 0xa4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
sub eax, 0xf0
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0xac], eax
movsx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x38]
mov dword [eax + 0xa8], edx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x240]
mov dword [ecx + 0x9c], edx
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x94], 2
push 0x1388
mov ecx, dword [ebp - 0x240]
push ecx
call dword [ebp - 0x458]
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x234]
push edx
call dword [ebp - 0x450]
mov eax, dword [ebp - 0x238]
push eax
call dword [ebp - 0x44c]
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [ebp - 0x44c]
mov edx, dword [ebp - 0x240]
push edx
call dword [ebp - 0x44c]
cmp dword [ebp - 0x244], 0
je 0x40d830
mov byte [ebp - 9], 0x4c
jmp 0x40d834
mov byte [ebp - 9], 0x30
movsx eax, byte [ebp - 9]
cmp eax, 0x30
je 0x40d995
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
and edx, 0x40
jne 0x40d995
mov eax, 4
imul ecx, eax, 0x16
mov edx, dword [ebp + ecx - 0x418]
push edx
call dword [ebp - 0x424]
mov dword [ebp - 0x304], eax
cmp dword [ebp - 0x304], 0
je 0x40d995
mov eax, 4
imul ecx, eax, 0x1a
mov edx, dword [ebp + ecx - 0x418]
push edx
mov eax, dword [ebp - 0x304]
push eax
call dword [ebp - 0x41c]
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x24c], 0xf0
lea ecx, [ebp - 0x5c0]
mov dword [ebp - 0x248], ecx
cmp dword [ebp - 0x24c], 0
jbe 0x40d8e4
mov edx, dword [ebp - 0x248]
mov byte [edx], 0
mov eax, dword [ebp - 0x248]
add eax, 1
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x24c]
sub ecx, 1
mov dword [ebp - 0x24c], ecx
jmp 0x40d8b2
mov dword [ebp - 0x254], 0xe8
lea edx, [ebp - 0x478]
mov dword [ebp - 0x250], edx
cmp dword [ebp - 0x254], 0
jbe 0x40d92c
mov eax, dword [ebp - 0x250]
mov byte [eax], 0
mov ecx, dword [ebp - 0x250]
add ecx, 1
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x254]
sub edx, 1
mov dword [ebp - 0x254], edx
jmp 0x40d8fa
mov dword [ebp - 0x25c], 0x280
lea eax, [ebp - 0x840]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x25c], 0
jbe 0x40d974
mov ecx, dword [ebp - 0x258]
mov byte [ecx], 0
mov edx, dword [ebp - 0x258]
add edx, 1
mov dword [ebp - 0x258], edx
mov eax, dword [ebp - 0x25c]
sub eax, 1
mov dword [ebp - 0x25c], eax
jmp 0x40d942
cmp dword [ebp - 0x308], 0
je 0x40d995
push 0x10
lea ecx, [ebp - 0x4d0]
push ecx
lea edx, [ebp - 0x4b0]
push edx
push 0
call dword [ebp - 0x308]
mov dword [ebp - 0x264], 0xf0
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x264], 0
jbe 0x40d9dd
mov ecx, dword [ebp - 0x260]
mov byte [ecx], 0
mov edx, dword [ebp - 0x260]
add edx, 1
mov dword [ebp - 0x260], edx
mov eax, dword [ebp - 0x264]
sub eax, 1
mov dword [ebp - 0x264], eax
jmp 0x40d9ab
mov dword [ebp - 0x26c], 0xe8
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x268], ecx
cmp dword [ebp - 0x26c], 0
jbe 0x40da25
mov edx, dword [ebp - 0x268]
mov byte [edx], 0
mov eax, dword [ebp - 0x268]
add eax, 1
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x26c]
sub ecx, 1
mov dword [ebp - 0x26c], ecx
jmp 0x40d9f3
mov dword [ebp - 0x274], 0x280
lea edx, [ebp - 0x840]
mov dword [ebp - 0x270], edx
cmp dword [ebp - 0x274], 0
jbe 0x40da6d
mov eax, dword [ebp - 0x270]
mov byte [eax], 0
mov ecx, dword [ebp - 0x270]
add ecx, 1
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x274]
sub edx, 1
mov dword [ebp - 0x274], edx
jmp 0x40da3b
movsx eax, byte [ebp - 1]
push eax
push 0xffffffffffffffff
call dword [ebp - 0x388]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret