Function at 0x404820
Capabilities:
Encrypt data using speck
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x4614fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x460028]
mov dword [0x46477c], eax
mov eax, dword [0x464ab4]
mov dword [0x464774], 1
test eax, eax
je 0x404860
dec eax
mov dword [0x464ab4], 0
mov dword [0x464ab8], eax
push 0xff
call fcn.00409300
add esp, 4
test eax, eax
jne 0x407401
call fcn.00402130
movsx eax, al
mov dword [ebp - 0x508], eax
test eax, eax
je 0x407401
push edi
push ebx
mov edi, 1
push esi
lea eax, [ebp - 0x52c]
push eax
call fcn.00401510
mov eax, dword [ebp - 0x508]
add esp, 4
mov ebx, dword [0x464518]
dec ebx
mov cl, byte [eax + 0x4600d0]
test cl, 2
je 0x404a64
cmp dword [0x464ab8], 0
jne 0x4073fe
push 0xa
push eax
xor edi, edi
call fcn.00401540
add esp, 8
test eax, eax
js 0x404900
nop dword [eax]
lea ecx, [edi + edi*4]
lea edi, [eax + ecx*2]
call fcn.00402150
push 0xa
push eax
mov dword [ebp - 0x508], eax
call fcn.00401540
add esp, 8
test eax, eax
jns 0x4048e0
cmp dword [ebp - 0x508], 0x24
jne 0x404917
call fcn.00402150
cmp eax, 0x3a
je 0x4049b0
cmp dword [0x463778], 0
je 0x4049ab
lea eax, [ebp - 0x52c]
mov dword [0x464518], ebx
push 0
push eax
call fcn.004015c0
mov eax, dword [0x463778]
add esp, 8
dec eax
cmp eax, 3
ja case.default.0x404d2c
jmp dword [eax*4 + 0x407410]
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.0040aeb0
jmp 0x40497b
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.0040ae30
jmp 0x40497b
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.0040ae70
add esp, 8
push 0
call fcn.004020f0
add esp, 4
test eax, eax
jne case.default.0x406560
pop esi
pop ebx
mov dword [0x464774], 4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
call fcn.0040b9e0
mov eax, dword [0x464740]
mov esi, dword [eax + 4]
test esi, esi
je 0x4049cf
nop dword [eax]
cmp edi, dword [esi + 4]
je 0x404a55
mov esi, dword [esi]
test esi, esi
jne 0x4049c0
push 0x14
call fcn.0040bcf0
mov ecx, dword [0x460020]
mov esi, eax
add esp, 4
mov dword [esi + 0xc], ecx
mov ecx, dword [0x460028]
mov dword [esi + 0x10], ecx
mov ecx, dword [0x464740]
mov ecx, dword [ecx + 4]
mov dword [esi], ecx
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov eax, dword [0x464740]
mov dword [eax + 4], esi
test byte [esi + 8], 8
je 0x404a1a
push 0x6d
call fcn.0040b980
add esp, 4
push dword [esi + 0x10]
push dword [esi + 0xc]
call fcn.00408690
mov eax, dword [esi + 0x10]
add esp, 8
sub eax, dword [0x460028]
mov dword [0x464778], eax
mov eax, dword [0x460020]
mov dword [esi + 0xc], eax
mov eax, dword [0x460028]
mov dword [esi + 0x10], eax
mov dword [0x464774], 2
jmp case.default.0x406560
cmp dword [0x4647e8], 0
jne 0x404a0a
or dword [esi + 8], 8
jmp 0x404a0a
test cl, 1
jne 0x404a81
cmp dword [0x464ab8], 0
jne 0x4073fe
call fcn.0040b9e0
mov eax, dword [ebp - 0x508]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004021f0
lea eax, [ebp - 0x104]
push eax
call fcn.0040bca0
add esp, 0xc
test eax, eax
je 0x404ab6
cmp byte [eax + 8], 0x1b
jne 0x404ab6
push str.Invalid_Use_Of_A_Predefined_Constant
push 0x71
call fcn.0040ba00
add esp, 8
mov eax, dword [0x464518]
mov dword [ebp - 0x514], eax
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x3a
jne 0x404bc3
cmp dword [0x464ab8], 0
jne 0x4073fe
call fcn.00402150
mov dword [ebp - 0x508], eax
cmp eax, 0x3a
je 0x404b05
push eax
call fcn.00402f00
add esp, 4
mov dword [ebp - 0x508], 0
lea eax, [ebp - 0x104]
push eax
call fcn.0040bc00
add esp, 4
mov dword [0x464740], eax
cmp eax, 0x460010
jne 0x404b2a
call fcn.0040b9e0
mov eax, dword [0x464740]
cmp dword [0x4647e8], 0
jne 0x404b4c
cmp byte [eax + 0xc], 0
je 0x404b4c
mov cl, byte [eax + 0xd]
test cl, 4
jne 0x404b4c
or cl, 8
mov byte [eax + 0xd], cl
mov eax, dword [0x464740]
test byte [eax + 0xd], 8
je 0x404b61
push 0x6d
call fcn.0040b980
mov eax, dword [0x464740]
add esp, 4
mov byte [eax + 0xc], 1
mov eax, dword [0x464740]
push dword [eax + 0x18]
push dword [eax + 0x10]
call fcn.00408690
mov ecx, dword [0x464740]
add esp, 8
mov eax, dword [ecx + 0x18]
sub eax, dword [0x460028]
mov dword [0x464778], eax
mov eax, dword [0x460020]
mov dword [ecx + 0x10], eax
mov ecx, dword [0x464740]
mov eax, dword [0x460028]
mov dword [ecx + 0x18], eax
cmp dword [ebp - 0x508], 0
je 0x404bb4
mov eax, dword [0x464740]
or byte [eax + 0xd], 2
mov dword [0x464774], 2
jmp 0x4069d3
cmp eax, 0x3d
jne 0x404c11
cmp dword [0x464ab8], 0
jne 0x4073fe
call fcn.00402150
mov dword [ebp - 0x508], eax
cmp eax, 0x3a
je 0x404c06
cmp eax, 0x3d
je 0x404bfb
push eax
xor esi, esi
call fcn.00402f00
add esp, 4
push esi
jmp 0x404c99
mov esi, 1
push esi
jmp 0x404c99
mov esi, 2
push esi
jmp 0x404c99
push eax
call fcn.00402f00
lea eax, [ebp - 0x104]
push eax
call fcn.0040bca0
add esp, 8
test eax, eax
jne 0x404cba
lea eax, [ebp - 0x104]
push eax
call fcn.00409d20
add esp, 4
test eax, eax
jne 0x404cba
cmp dword [0x464ab8], eax
jne 0x4073fe
mov esi, dword [0x464518]
call fcn.00402440
test eax, eax
je 0x404cba
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp byte [eax + 0x4600d0], 1
jne 0x404cba
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.004021f0
lea eax, [ebp - 0x304]
push eax
call fcn.0040bca0
add esp, 0xc
test eax, eax
je 0x404cb4
cmp byte [eax + 8], 0xe
jne 0x404cb4
push dword [eax + 0xc]
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00407750
add esp, 0xc
jmp 0x4069d3
mov dword [0x464518], esi
cmp dword [0x464ab8], 0
mov eax, 4
cmovne eax, edi
mov dword [0x464774], eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040bca0
mov edi, eax
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x51c], edi
call fcn.00409d20
add esp, 8
mov esi, eax
test edi, edi
jne 0x404d4e
test esi, esi
jne 0x404d46
cmp dword [0x463778], eax
je 0x4069fa
push eax
lea eax, [ebp - 0x52c]
mov dword [0x464518], ebx
push eax
call fcn.004015c0
mov eax, dword [0x463778]
add esp, 8
dec eax
cmp eax, 3
ja case.default.0x404d2c
jmp dword [eax*4 + 0x407420]
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.0040aef0
jmp 0x40497b
or ecx, 0xffffffff
jmp case.0x404d67.3
movsx ebx, byte [edi + 8]
mov ecx, ebx
lea eax, [ebx - 2]
cmp eax, 0x18
ja case.0x404d67.3
movzx eax, byte [eax + 0x407444]
jmp dword [eax*4 + 0x407430]
mov eax, dword [edi + 0xc]
cmp eax, 0x14
jb 0x406b3e
cmp eax, 0x28
jae 0x40502e
cmp eax, 0x14
jne 0x404dee
mov eax, dword [str..iif]
mov esi, dword [0x464518]
mov dword [ebp - 0x104], eax
mov al, byte [0x45441c]
mov byte [ebp - 0x100], al
call fcn.004023d0
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.004021f0
call fcn.00402ee0
lea eax, [ebp - 0x104]
push eax
call fcn.0040bca0
add esp, 0xc
test eax, eax
je 0x404de8
cmp byte [eax + 8], 0xc
jne 0x404de8
cmp dword [eax + 0xc], 0x14
je 0x404de8
push 0
mov edi, eax
call fcn.004020f0
add esp, 4
jmp 0x404dee
mov dword [0x464518], esi
mov ecx, dword [edi + 0xc]
mov eax, ecx
sub eax, 0x15
je 0x404faf
sub eax, 1
je 0x404faf
sub eax, 1
je 0x404faf
cmp dword [0x464ab8], 0
jne 0x4073fe
lea eax, [ecx - 0x14]
cmp eax, 0xf
ja case.0x404e2e.21
movzx eax, byte [eax + 0x407474]
jmp dword [eax*4 + 0x407460]
call fcn.00401250
mov ecx, dword [edi + 0xc]
add ecx, 0xffffffec
cmp ecx, 0xb
ja case.0x404e49.20
jmp dword [ecx*4 + 0x407484]
xor ebx, ebx
test eax, eax
sete bl
jmp 0x404f8e
xor ebx, ebx
test eax, eax
setg bl
jmp 0x404f8e
xor ebx, ebx
test eax, eax
sets bl
jmp 0x404f8e
xor ebx, ebx
test eax, eax
setns bl
jmp 0x404f8e
xor ebx, ebx
test eax, eax
setle bl
jmp 0x404f8e
push 0
call fcn.004020f0
xor ebx, ebx
add esp, 4
test eax, eax
sete bl
test eax, eax
jne 0x404ec1
lea eax, [ebp - 0x104]
push eax
call fcn.00408c90
xor eax, eax
cmp byte [ebp - 0x104], al
push eax
cmove ebx, eax
call fcn.004020f0
add esp, 8
mov eax, dword [edi + 0xc]
sub eax, 0x20
je 0x404ed2
sub eax, 1
je 0x404f8e
xor ebx, 1
jmp 0x404f8e
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004021f0
lea eax, [ebp - 0x104]
push eax
call fcn.0040bb70
add esp, 0xc
test eax, eax
je 0x404f08
cmp dword [eax + 0xc], 0
je 0x404f08
mov ebx, 1
jmp 0x404f24
lea eax, [ebp - 0x104]
push eax
call fcn.0040bd80
add esp, 4
xor ebx, ebx
test eax, eax
je 0x404f24
cmp byte [eax + 0xc], 1
sete bl
mov eax, dword [edi + 0xc]
sub eax, 0x18
je 0x404f8e
sub eax, 1
jne 0x404f8e
xor ebx, 1
jmp 0x404f8e
lea eax, [ebp - 0x104]
push eax
call fcn.00408c90
push 0
call fcn.004020f0
lea eax, [ebp - 0x304]
push eax
call fcn.00408c90
push dword [0x464798]
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040be50
mov ecx, dword [edi + 0xc]
add esp, 0x18
sub ecx, 0x22
je case.0x404e49.20
sub ecx, 1
jne case.0x404e49.20
xor ebx, ebx
test eax, eax
sete bl
jmp 0x404f8e
xor ebx, ebx
test eax, eax
setne bl
push 0
call fcn.004020f0
add esp, 4
mov dword [0x464774], 1
test ebx, ebx
je 0x4073fe
jmp case.default.0x406560
mov ecx, dword [0x464ab0]
test ecx, ecx
je 0x406a4c
cmp dword [ecx*4 + 0x464a40], 0
mov eax, dword [0x464ab8]
jne 0x404ff5
inc eax
cmp dword [ecx*4 + 0x464a80], 0
mov dword [0x464ab4], eax
mov eax, dword [edi + 0xc]
je 0x40501d
sub eax, 0x15
je 0x405027
sub eax, 1
je 0x404fee
sub eax, 1
jne 0x405027
xor eax, eax
mov dword [0x464ab8], eax
xor ebx, ebx
test eax, eax
push 0
sete bl
call fcn.004020f0
add esp, 4
mov dword [0x464774], 1
test ebx, ebx
je 0x4073fe
jmp case.default.0x406560
sub eax, 0x15
je 0x404fee
sub eax, 1
jne 0x404fee
mov eax, 1
jmp 0x404ff0
sub eax, 0x28
je 0x406aad
sub eax, 1
je 0x406a71
call fcn.0040b9e0
mov ecx, ebx
cmp dword [0x464ab8], 0
jne 0x4073fe
dec ecx
cmp ecx, 0x18
ja case.0x40505e.2
jmp dword [ecx*4 + 0x4074b4]
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x28
jne 0x40514d
nop dword [eax]
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004021f0
push 1
lea eax, [ebp - 0x104]
push 0x455160
push eax
call fcn.0040be50
add esp, 0x14
test eax, eax
je 0x4050b3
movsx eax, byte [edi + 9]
mov dword [0x463774], eax
jmp 0x4050d9
mov eax, dword [0x46356c]
test eax, eax
je 0x4050cf
push dword [edi + 0xc]
lea ecx, [ebp - 0x104]
push ecx
call eax
add esp, 8
test eax, eax
jne 0x4050d9
push 0x75
call fcn.0040b980
add esp, 4
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x2c
je 0x405080
cmp eax, 0x29
je 0x40514d
call fcn.0040b9e0
mov dword [0x464774], 1
jmp case.default.0x406560
mov eax, dword [edi + 0xc]
sub eax, 0
je 0x40515c
sub eax, 1
jne case.default.0x406560
mov esi, 0x4636c0
call fcn.004023d0
mov dword [ebp - 0x508], eax
test eax, eax
je 0x405141
cmp esi, 0x46370f
jae 0x405132
mov byte [esi], al
inc esi
call fcn.00402150
mov dword [ebp - 0x508], eax
test eax, eax
jne 0x405127
push eax
mov byte [esi], 0
call fcn.00402f00
add esp, 4
mov dword [0x464774], 1
jmp case.default.0x406560
mov esi, 0x463720
call fcn.004023d0
mov dword [ebp - 0x508], eax
test eax, eax
je 0x405141
cmp esi, 0x46376f
jae 0x40517b
mov byte [esi], al
inc esi
call fcn.00402150
mov dword [ebp - 0x508], eax
test eax, eax
jne 0x405170
jmp 0x405141
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004023e0
add esp, 8
lea eax, [ebp - 0x104]
cmp byte [0x4635a0], 0
je 0x4051f7
mov ecx, 0x4635a0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4051d1
test dl, dl
je 0x4051cd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4051d1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4051b1
xor eax, eax
jmp 0x4051d6
sbb eax, eax
or eax, 1
test eax, eax
je 0x40514d
push 0x6d
call fcn.0040b980
add esp, 4
mov dword [0x464774], 1
jmp case.default.0x406560
push pe_nt_image_headers32
push eax
push 0x4635a0
call fcn.0042b540
add esp, 0xc
mov dword [0x464774], 1
jmp case.default.0x406560
mov eax, dword [edi + 0xc]
sub eax, 0
je 0x40539f
sub eax, 1
je 0x40523e
push str.Internal____PST.C_Error.
push 0x69
call fcn.0040ba00
add esp, 8
jmp case.default.0x406560
push dword [0x464920]
lea eax, [ebp - 0x504]
push 0x464940
push eax
call fcn.0042b540
mov eax, 0x200
sub eax, dword [0x464920]
push eax
lea eax, [ebp - 0x504]
add eax, dword [0x464920]
push eax
call fcn.004021a0
mov eax, dword [0x464920]
lea ecx, [ebp - 0x504]
add eax, ecx
push eax
call fcn.004079c0
add esp, 0x18
test eax, eax
je 0x40529b
mov eax, dword [0x464920]
lea eax, [ebp + eax - 0x504]
jmp 0x4052a1
lea eax, [ebp - 0x504]
push 8
push 0x45444a
push eax
call fcn.00404520
xor ebx, ebx
push ebx
call fcn.004020f0
add esp, 0x10
call fcn.00402440
test eax, eax
je 0x4052d6
push ebx
call fcn.004020f0
add esp, 4
test eax, eax
jne 0x4052d6
call fcn.00401250
mov ebx, eax
push 0
or esi, 0xffffffff
call fcn.004020f0
add esp, 4
call fcn.00402440
test eax, eax
je 0x4052f3
call fcn.00401250
mov esi, eax
push 0x455168
push 0x464820
call fcn.0042ad02
mov edi, eax
add esp, 8
test edi, edi
jne 0x40531f
push str.File_not_found.
push 0x69
call fcn.0040ba00
add esp, 8
jmp case.default.0x406560
push 0
push ebx
push edi
call fcn.0042b451
push edi
push 1
lea eax, [ebp - 0x508]
push 1
push eax
call fcn.0042afc1
add esp, 0x1c
cmp eax, 1
je 0x405355
push str.Offset_past_End_Of_File.
push 0x69
call fcn.0040ba00
add esp, 8
jmp case.default.0x406560
push 0
push ebx
push edi
call fcn.0042b451
add esp, 0xc
test esi, esi
je 0x405391
push edi
push 1
lea eax, [ebp - 0x508]
push 1
push eax
call fcn.0042afc1
add esp, 0x10
cmp eax, 1
jne 0x405391
push dword [ebp - 0x508]
call fcn.0040a2f0
add esp, 4
sub esi, 1
jne 0x405365
push edi
call fcn.004299d7
add esp, 4
jmp case.default.0x406560
mov ecx, dword [0x464ac8]
inc ecx
mov dword [0x464774], 1
mov dword [0x464ac8], ecx
cmp ecx, 6
jle 0x4053d2
lea eax, [ecx - 1]
push 0x69
mov dword [0x464ac8], eax
call fcn.0040b980
add esp, 4
jmp case.default.0x406560
mov eax, dword [0x464ac4]
cmp ecx, eax
push dword [0x464920]
cmovg eax, ecx
mov dword [0x464ac4], eax
lea eax, [ebp - 0x504]
push 0x464940
push eax
call fcn.0042b540
mov eax, 0x200
sub eax, dword [0x464920]
push eax
lea eax, [ebp - 0x504]
add eax, dword [0x464920]
push eax
call fcn.004021a0
mov eax, dword [0x464920]
lea ecx, [ebp - 0x504]
add eax, ecx
push eax
call fcn.004079c0
add esp, 0x18
test eax, eax
je 0x40543e
mov eax, dword [0x464920]
lea eax, [ebp + eax - 0x504]
jmp 0x405444
lea eax, [ebp - 0x504]
push 8
push 0x45444a
push eax
call fcn.00404520
push 0x455164
push 0x464820
call fcn.0042ad02
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40547e
dec dword [0x464ac8]
push 0x69
call fcn.0040b980
add esp, 4
jmp case.default.0x406560
push 0x120
call fcn.0040bcf0
mov ecx, dword [0x464da8]
add esp, 4
mov dword [0x464d9c], eax
mov dword [eax], ecx
mov eax, dword [0x464d9c]
mov dword [eax + 4], 2
mov ecx, dword [0x464d9c]
mov eax, dword [0x464814]
mov dword [ecx + 8], eax
mov ecx, dword [0x464d9c]
mov eax, dword [0x464ab8]
mov dword [ecx + 0xc], eax
mov ecx, dword [0x464d9c]
mov eax, dword [0x464ab0]
mov dword [ecx + 0x10], eax
mov ecx, dword [0x464d9c]
mov eax, dword [0x464aac]
mov dword [ecx + 0x14], eax
mov eax, dword [0x464d9c]
mov dword [eax + 0x18], esi
mov ecx, dword [0x464d9c]
mov eax, dword [0x464818]
mov dword [ecx + 0x1c], eax
mov ecx, 0x464820
mov edx, dword [0x464d9c]
add edx, 0x20
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x405500
test byte [0x464aac], 0x80
mov edi, 1
je 0x4069d3
mov dword [0x4647f8], 0x3c
jmp 0x4069d3
mov eax, dword [edi + 0xc]
cmp eax, 2
jne 0x405578
mov eax, dword [0x464b20]
test eax, eax
jne 0x405554
push str.Area_Stack_Is_Empty
push 0x71
call fcn.0040ba00
mov eax, dword [0x464b20]
add esp, 8
push dword [eax*4 + 0x464adc]
dec eax
mov dword [0x464b20], eax
call fcn.00408580
add esp, 4
mov dword [0x464774], 1
jmp case.default.0x406560
cmp eax, 1
jne 0x4055bf
mov ecx, dword [0x464b20]
cmp ecx, 0x10
jl 0x40559d
push str.Area_Stack_Is_Full
push 0x71
call fcn.0040ba00
mov ecx, dword [0x464b20]
add esp, 8
mov eax, dword [0x460020]
mov dword [ecx*4 + 0x464ae0], eax
inc ecx
mov dword [0x464b20], ecx
mov dword [0x464774], 1
jmp case.default.0x406560
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004021f0
xor esi, esi
add esp, 8
mov dword [ebp - 0x510], esi
xor edi, edi
mov dword [ebp - 0x51c], esi
mov dword [ebp - 0x518], esi
mov dword [ebp - 0x514], esi
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x28
jne 0x405828
lea eax, [ebp - 0x204]
push 0xffffffffffffffff
push eax
call fcn.004021f0
push 1
lea eax, [ebp - 0x204]
push str.BANK
push eax
call fcn.0040be50
add esp, 0x14
test eax, eax
je 0x405693
or esi, 0x8080
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x3d
je 0x405643
call fcn.0040b9e0
call fcn.00402440
test eax, eax
jne 0x405651
call fcn.0040b9e0
lea eax, [ebp - 0x204]
push 0xffffffffffffffff
push eax
call fcn.004021f0
lea eax, [ebp - 0x204]
push eax
call fcn.0040bb30
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x514], ebx
test ebx, ebx
jne 0x405808
push 0x75
call fcn.0040b980
add esp, 4
and esi, 0xffff7f7f
jmp 0x405808
push 1
lea eax, [ebp - 0x204]
push 0x4551e4
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x4056c2
or esi, 0x400
mov dword [ebp - 0x510], 0x400
jmp 0x405808
push 1
lea eax, [ebp - 0x204]
push 0x4551e8
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x4056f1
or esi, 0x404
mov dword [ebp - 0x510], 0x404
jmp 0x405808
push 1
lea eax, [ebp - 0x204]
push 0x4551ec
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x405720
or esi, 0x800
mov dword [ebp - 0x51c], 0x800
jmp 0x405808
push 1
lea eax, [ebp - 0x204]
push 0x4551f0
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x40574f
or esi, 0x808
mov dword [ebp - 0x51c], 0x808
jmp 0x405808
push 1
lea eax, [ebp - 0x204]
push str.NOPAG
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x40577e
or esi, 0x1000
mov dword [ebp - 0x518], 0x1000
jmp 0x405808
push 1
lea eax, [ebp - 0x204]
push 0x4551fc
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x4057aa
or esi, 0x1010
mov dword [ebp - 0x518], 0x1010
jmp 0x405808
push 1
lea eax, [ebp - 0x204]
push str.CSEG
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x4057d4
mov edi, dword [0x4604f8]
and edi, 0x4003
or esi, edi
jmp 0x405808
push 1
lea eax, [ebp - 0x204]
push str.DSEG
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x4057fe
mov edi, dword [0x46051c]
and edi, 0x4043
or esi, edi
jmp 0x405808
push 0x75
call fcn.0040b980
add esp, 4
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x2c
je 0x405600
cmp eax, 0x29
je 0x405831
call fcn.0040b9e0
jmp 0x405831
push eax
call fcn.00402f00
add esp, 4
lea eax, [ebp - 0x104]
push eax
call fcn.0040bab0
mov ecx, esi
mov ebx, eax
and ecx, 0x8080
add esp, 4
mov dword [ebp - 0x50c], ecx
test ebx, ebx
je 0x405999
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x50c], eax
test ecx, ecx
je 0x405894
mov ecx, dword [ebp - 0x514]
test eax, 0x8080
je 0x405883
cmp ecx, dword [ebx + 4]
je 0x405894
push 0x6d
call fcn.0040b980
add esp, 4
jmp 0x40588e
or eax, 0x8080
mov dword [ebx + 4], ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x50c]
test esi, 0x404
je 0x4058c3
mov ecx, eax
and ecx, 0x404
je 0x4058ba
cmp dword [ebp - 0x510], ecx
je 0x4058c3
push 0x6d
call fcn.0040b980
add esp, 4
jmp 0x4058c3
mov eax, dword [ebp - 0x510]
or dword [ebx + 0x18], eax
mov ecx, dword [ebp - 0x50c]
test esi, 0x808
je 0x4058fe
mov edx, ecx
and edx, 0x808
je 0x4058f5
cmp dword [ebp - 0x51c], edx
je 0x4058fe
push 0x6d
call fcn.0040b980
mov ecx, dword [ebp - 0x50c]
add esp, 4
jmp 0x4058fe
mov eax, dword [ebp - 0x51c]
or dword [ebx + 0x18], eax
test esi, 0x1010
je 0x40592b
and ecx, 0x1010
je 0x405922
cmp dword [ebp - 0x518], ecx
je 0x40592b
push 0x6d
call fcn.0040b980
add esp, 4
jmp 0x40592b
mov eax, dword [ebp - 0x518]
or dword [ebx + 0x18], eax
test esi, 0x4040
je 0x405a10
mov eax, dword [ebp - 0x50c]
and eax, 0x4040
je 0x405974
and edi, 0x4040
cmp edi, eax
je 0x405a10
push 0x6d
call fcn.0040b980
add esp, 4
push ebx
call fcn.00408580
add esp, 4
mov dword [0x464774], 1
jmp case.default.0x406560
mov eax, dword [ebx + 0x18]
and eax, 0xffffbfbc
or eax, edi
push ebx
mov dword [ebx + 0x18], eax
call fcn.00408580
add esp, 4
mov dword [0x464774], 1
jmp case.default.0x406560
push 0x24
call fcn.0040bcf0
mov ebx, eax
mov eax, dword [0x460008]
mov dword [ebx], eax
xor eax, eax
cmp dword [ebp - 0x50c], eax
cmovne eax, dword [ebp - 0x514]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040bdd0
mov dword [ebx + 8], eax
add esp, 8
mov eax, dword [0x460008]
mov eax, dword [eax + 0xc]
inc eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
test esi, 0x4040
jne 0x405a07
mov eax, dword [0x4604f8]
and eax, 3
or esi, eax
mov dword [ebx + 0x18], esi
mov dword [0x460008], ebx
push ebx
call fcn.00408580
add esp, 4
mov dword [0x464774], 1
jmp case.default.0x406560
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004021f0
add esp, 8
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x510], ebx
mov dword [ebp - 0x50c], ebx
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x28
jne 0x405bba
nop dword [eax]
lea eax, [ebp - 0x204]
push 0xffffffffffffffff
push eax
call fcn.004021f0
push 1
lea eax, [ebp - 0x204]
push str.BASE
push eax
call fcn.0040be50
add esp, 0x14
test eax, eax
je 0x405aac
or ebx, 1
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x3d
je 0x405aa0
call fcn.0040b9e0
call fcn.00401250
mov edi, eax
jmp 0x405b9a
push 1
lea eax, [ebp - 0x204]
push str.SIZE
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x405aee
or ebx, 2
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x3d
je 0x405ade
call fcn.0040b9e0
call fcn.00401250
mov dword [ebp - 0x510], eax
jmp 0x405b9a
push 1
lea eax, [ebp - 0x204]
push str.FSFX
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x405b51
or ebx, 4
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x3d
je 0x405b20
call fcn.0040b9e0
call fcn.004023d0
mov dword [ebp - 0x508], eax
test byte [eax + 0x4600d0], 3
jne 0x405b3f
call fcn.0040b9e0
mov eax, dword [ebp - 0x508]
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.004021f0
add esp, 8
jmp 0x405b9a
push 1
lea eax, [ebp - 0x204]
push 0x455228
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x405b90
or ebx, 8
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x3d
je 0x405b83
call fcn.0040b9e0
call fcn.00401250
mov dword [ebp - 0x50c], eax
jmp 0x405b9a
push 0x75
call fcn.0040b980
add esp, 4
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x2c
je 0x405a60
cmp eax, 0x29
je 0x405bc3
call fcn.0040b9e0
jmp 0x405bc3
push eax
call fcn.00402f00
add esp, 4
lea eax, [ebp - 0x104]
push eax
call fcn.0040bb30
mov esi, eax
add esp, 4
test esi, esi
je 0x405cad
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x514], eax
test bl, 1
je 0x405c0e
test al, 1
je 0x405bff
cmp edi, dword [esi + 0x10]
je 0x405c0e
push 0x6d
call fcn.0040b980
add esp, 4
jmp 0x405c08
or eax, 1
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x514]
test bl, 2
je 0x405c35
mov ecx, dword [ebp - 0x510]
test al, 2
je 0x405c2e
cmp ecx, dword [esi + 0x14]
je 0x405c35
push 0x6d
call fcn.0040b980
add esp, 4
jmp 0x405c35
or dword [esi + 0x1c], 2
mov dword [esi + 0x14], ecx
test bl, 4
je 0x405c77
test byte [ebp - 0x514], 4
lea eax, [ebp - 0x304]
je 0x405c67
push 1
push dword [esi + 8]
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
jne 0x405c77
push 0x6d
call fcn.0040b980
add esp, 4
jmp 0x405c77
push eax
call fcn.0040bdd0
add esp, 4
mov dword [esi + 8], eax
or dword [esi + 0x1c], 4
test bl, 8
je 0x40514d
test byte [ebp - 0x514], 8
mov ecx, dword [ebp - 0x50c]
je 0x405c97
cmp ecx, dword [esi + 0x18]
jmp 0x4051d8
or dword [esi + 0x1c], 8
mov dword [esi + 0x18], ecx
mov dword [0x464774], 1
jmp case.default.0x406560
push 0x20
call fcn.0040bcf0
mov ecx, dword [0x46000c]
mov esi, eax
lea eax, [ebp - 0x104]
push eax
mov dword [esi], ecx
call fcn.0040bdd0
add esp, 8
mov dword [esi + 4], eax
test bl, 4
je 0x405ce6
lea eax, [ebp - 0x304]
push eax
call fcn.0040bdd0
add esp, 4
jmp 0x405ce8
xor eax, eax
mov dword [esi + 8], eax
mov eax, dword [0x46000c]
mov eax, dword [eax + 0xc]
inc eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0xc], eax
test bl, 1
mov eax, 0
cmovne eax, edi
test bl, 2
mov dword [esi + 0x10], eax
mov eax, 0
cmovne eax, dword [ebp - 0x510]
test bl, 8
mov dword [esi + 0x14], eax
mov eax, 0
cmovne eax, dword [ebp - 0x50c]
mov dword [esi + 0x18], eax
mov dword [0x46000c], esi
mov dword [0x464774], 1
jmp case.default.0x406560
mov eax, dword [0x460020]
mov eax, dword [eax + 0x18]
and eax, 0x808
cmp eax, 0x808
jne 0x405d7d
call fcn.0040a310
call fcn.00401250
mov dword [0x460028], eax
mov dword [0x46477c], eax
call fcn.0040a310
mov dword [0x464774], 2
jmp case.default.0x406560
push 0x6f
call fcn.0040b980
add esp, 4
call fcn.0040a310
mov dword [0x464774], 2
jmp case.default.0x406560
call fcn.00402440
test eax, eax
je case.0x405dc6.100
call fcn.004023d0
and eax, 0x7f
movsx eax, byte [eax + 0x460150]
add eax, 0xffffffc0
cmp eax, 0x38
ja case.0x405dc6.65
movzx eax, byte [eax + 0x40752c]
jmp dword [eax*4 + 0x407518]
mov dword [0x464804], 2
mov dword [0x464774], 1
jmp case.default.0x406560
mov dword [0x464804], 8
mov dword [0x464774], 1
jmp case.default.0x406560
mov dword [0x464804], 0x10
mov dword [0x464774], 1
jmp case.default.0x406560
push dword [ebp - 0x508]
call fcn.00402f00
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.004015c0
lea eax, [ebp - 0x52c]
push eax
call fcn.004016f0
add esp, 0x10
test eax, eax
je 0x405e72
mov eax, dword [ebp - 0x528]
cmp eax, 2
je 0x405e5e
cmp eax, 8
je 0x405e5e
cmp eax, 0xa
je 0x405e5e
cmp eax, 0x10
jne 0x405e72
mov dword [0x464804], eax
mov dword [0x464774], 1
jmp case.default.0x406560
mov dword [0x464804], 0xa
call fcn.0040b9e0
mov dword [0x464774], 1
jmp case.default.0x406560
mov dword [0x464804], 0xa
mov dword [0x464774], 1
jmp case.default.0x406560
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004021f0
lea eax, [ebp - 0x104]
push eax
call fcn.0040bc00
push 0
mov cl, byte [eax + 0xd]
and cl, 0xfe
or cl, 2
mov byte [eax + 0xd], cl
call fcn.004020f0
add esp, 0x10
test eax, eax
jne case.0x40505e.10
mov dword [0x464774], 1
jmp case.default.0x406560
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004021f0
lea eax, [ebp - 0x104]
push eax
call fcn.0040bc00
push 0
mov cl, byte [eax + 0xd]
and cl, 0xfd
or cl, 1
mov byte [eax + 0xd], cl
call fcn.004020f0
add esp, 0x10
test eax, eax
jne case.0x40505e.11
mov dword [0x464774], 1
jmp case.default.0x406560
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004021f0
push 1
call fcn.004020f0
push dword [edi + 0xc]
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00407750
add esp, 0x18
jmp case.default.0x406560
mov edi, dword [edi + 0xc]
cmp dword [0x464794], edi
jae 0x405f7e
push 0x6f
call fcn.0040b980
add esp, 4
mov eax, dword [0x460020]
mov ebx, dword [eax + 0x18]
and ebx, 3
mov dword [ebp - 0x510], ebx
lea esi, [ebx + 1]
mov dword [ebp - 0x514], esi
call fcn.00402440
test eax, eax
jne 0x405fea
dec edi
cmp edi, 3
ja case.0x405fa7.1
jmp dword [edi*4 + 0x407568]
push 0
call fcn.0040a5d0
add esp, 4
jmp case.default.0x406560
push 0
call fcn.0040a2b0
add esp, 4
jmp case.default.0x406560
push 0
call fcn.0040a2d0
add esp, 4
jmp case.default.0x406560
push 0
call fcn.0040a2f0
add esp, 4
jmp case.default.0x406560
cmp esi, 1
je 0x4061bf
cmp esi, edi
je 0x4061bf
cmp edi, 1
jne 0x406130
xor edi, edi
xor esi, esi
nop dword [eax + eax]
lea eax, [ebp - 0x52c]
push eax
call fcn.00401510
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.004015c0
add esp, 0xc
test byte [ebp - 0x520], 0xc
je 0x406040
push 0x6f
call fcn.0040b980
add esp, 4
lea eax, [ebp - 0x52c]
push eax
call fcn.004016f0
add esp, 4
test eax, eax
jne 0x40605d
push 0x72
call fcn.0040b980
add esp, 4
cmp dword [0x460088], 0
movzx eax, byte [ebp - 0x528]
je 0x40607f
mov ecx, dword [ebp - 0x514]
inc edi
sub ecx, edi
shl ecx, 3
shl eax, cl
or esi, eax
jmp 0x40608b
lea ecx, [edi*8]
shl eax, cl
or esi, eax
inc edi
xor edx, edx
mov eax, edi
div dword [ebp - 0x514]
mov ebx, edi
test edx, edx
jne 0x4060cf
mov eax, dword [ebp - 0x510]
jmp dword [eax*4 + 0x407578]
push 0
call fcn.004020f0
add esp, 4
test eax, eax
jne 0x406010
test ebx, ebx
je case.default.0x406560
mov eax, dword [ebp - 0x510]
jmp dword [eax*4 + 0x407588]
lea eax, [ebp - 0x52c]
push eax
call fcn.00401510
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.004015c0
add esp, 0xc
test byte [ebp - 0x520], 0xc
je 0x406160
push 0x6f
call fcn.0040b980
add esp, 4
jmp dword [ebx*4 + 0x407598]
lea esi, [edi - 1]
lea eax, [ebp - 0x52c]
push eax
call fcn.00401510
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.004015c0
add esp, 0xc
test byte [ebp - 0x520], 0xc
je 0x4061f7
cmp edi, 1
je 0x4061f7
push 0x6f
call fcn.0040b980
add esp, 4
cmp esi, 3
ja case.0x4061fc.0
jmp dword [esi*4 + 0x4075a8]
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.0040aef0
jmp 0x406241
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.0040ae30
jmp 0x406241
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.0040ae70
jmp 0x406241
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.0040aeb0
add esp, 8
push 0
call fcn.004020f0
add esp, 4
test eax, eax
jne 0x4061c2
jmp case.default.0x406560
mov eax, dword [0x464794]
cmp eax, dword [edi + 0xc]
jae 0x40626f
push 0x6f
call fcn.0040b980
add esp, 4
lea eax, [ebp - 0x52c]
push eax
call fcn.00401510
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.004015c0
push 0x3e8
push 0x3e8
call fcn.0040a7d0
mov edi, dword [edi + 0xc]
xor edx, edx
mov eax, dword [0x460020]
add esp, 0x14
imul edi, dword [ebp - 0x528]
mov esi, dword [eax + 0x18]
and esi, 3
mov dword [0x464774], 3
inc esi
mov eax, edi
div esi
mov eax, edi
neg edx
sbb ecx, ecx
xor edx, edx
div esi
neg ecx
add eax, dword [0x460028]
add eax, ecx
mov dword [0x460028], eax
jmp case.default.0x406560
mov eax, dword [0x460020]
xor ebx, ebx
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x518], ebx
mov eax, dword [eax + 0x18]
and eax, 3
mov dword [ebp - 0x514], eax
lea esi, [eax + 1]
mov dword [ebp - 0x510], esi
call fcn.00402440
test eax, eax
je 0x4064d7
call fcn.00402170
mov edi, eax
cmp edi, 0x28
jne 0x4063f8
mov edi, dword [0x464518]
lea esi, [eax - 0x27]
dec edi
call fcn.004023d0
cmp eax, 0x28
mov dword [ebp - 0x508], eax
lea ecx, [esi + 1]
cmovne ecx, esi
cmp eax, 0x29
lea esi, [ecx - 1]
cmovne esi, ecx
test esi, esi
jne 0x406332
mov esi, dword [0x464518]
movsx eax, byte [esi]
mov dword [ebp - 0x508], eax
lea eax, [ebp - 0x52c]
mov byte [esi], 0
push eax
mov dword [0x464518], edi
call fcn.00401510
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.004015c0
mov al, byte [ebp - 0x508]
mov byte [esi], al
lea eax, [ebp - 0x52c]
push eax
mov dword [0x464518], esi
call fcn.00401220
mov edi, dword [ebp - 0x51c]
add esp, 0x10
mov eax, dword [ebp - 0x528]
mov dword [ebp - 0x508], eax
cmp dword [edi + 0xc], 1
jne 0x4063d5
call fcn.00402440
test eax, eax
mov eax, dword [ebp - 0x508]
jne 0x4063d4
or eax, 0x80
mov dword [ebp - 0x508], eax
inc ebx
mov esi, dword [ebp - 0x510]
lea ecx, [ebp - 0x50c]
push ecx
lea ecx, [ebp - 0x518]
push ecx
push eax
push esi
call fcn.004085c0
add esp, 0x10
jmp 0x4064ca
mov eax, dword [ebp - 0x51c]
mov eax, dword [eax + 0xc]
sub eax, 0
je 0x406414
sub eax, 1
je 0x40645a
sub eax, 1
jne 0x4064c4
push edi
call fcn.004022a0
add esp, 4
mov dword [ebp - 0x508], eax
test eax, eax
js 0x4064c4
nop dword [eax + eax]
lea ecx, [ebp - 0x50c]
push ecx
lea ecx, [ebp - 0x518]
push ecx
push eax
push esi
call fcn.004085c0
push edi
call fcn.004022a0
add esp, 0x14
mov dword [ebp - 0x508], eax
test eax, eax
jns 0x406430
jmp 0x4064c4
push edi
call fcn.004022a0
mov esi, eax
add esp, 4
mov dword [ebp - 0x508], esi
test esi, esi
jle 0x4064be
nop
and esi, 0x7f
push edi
mov dword [ebp - 0x508], esi
call fcn.004022a0
mov esi, eax
add esp, 4
test esi, esi
jns 0x406491
call fcn.00402440
test eax, eax
je 0x4064f6
lea eax, [ebp - 0x50c]
inc ebx
push eax
lea eax, [ebp - 0x518]
push eax
push dword [ebp - 0x508]
push dword [ebp - 0x510]
call fcn.004085c0
add esp, 0x10
mov dword [ebp - 0x508], esi
test esi, esi
jns 0x406470
mov esi, dword [ebp - 0x510]
mov edi, dword [ebp - 0x51c]
call fcn.00402440
test eax, eax
jne 0x406318
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x40652d
sub eax, 1
jne 0x40654d
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x518]
push eax
push 0
jmp 0x406544
mov eax, dword [ebp - 0x508]
lea ecx, [ebp - 0x50c]
push ecx
lea ecx, [ebp - 0x518]
or eax, 0x80
push ecx
push eax
push dword [ebp - 0x510]
mov dword [ebp - 0x508], eax
call fcn.004085c0
add esp, 0x10
mov dword [ebp - 0x508], esi
inc ebx
jmp 0x4064be
test ebx, ebx
jne 0x40654d
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x518]
push eax
push 0x80
push esi
call fcn.004085c0
add esp, 0x10
cmp dword [ebp - 0x50c], 0
je case.default.0x406560
mov eax, dword [ebp - 0x514]
jmp dword [eax*4 + 0x4075b8]
push dword [ebp - 0x518]
call fcn.0040a2f0
add esp, 4
jmp case.default.0x406560
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004021f0
mov eax, dword [edi + 0xc]
add esp, 8
sub eax, 0
je 0x406602
sub eax, 1
jne 0x40514d
lea eax, [ebp - 0x104]
push eax
call fcn.0040bb70
add esp, 4
test eax, eax
je 0x40514d
mov dword [eax + 0xc], 0
mov dword [0x464774], 1
jmp case.default.0x406560
push 0
call fcn.004020f0
add esp, 4
mov byte [ebp - 0x204], 0
call fcn.00402440
test eax, eax
je 0x406630
lea eax, [ebp - 0x204]
push pe_nt_image_headers32
push eax
call fcn.004021a0
add esp, 8
lea eax, [ebp - 0x104]
push eax
call fcn.0040bb70
mov edi, eax
add esp, 4
test edi, edi
je 0x406698
push dword [0x464798]
lea eax, [ebp - 0x204]
push dword [edi + 8]
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
jne 0x406682
cmp dword [edi + 0xc], eax
je 0x406670
push 0x6d
call fcn.0040b980
add esp, 4
lea eax, [ebp - 0x204]
push eax
call fcn.0040bdd0
add esp, 4
mov dword [edi + 8], eax
mov dword [edi + 0xc], 1
mov dword [0x464774], 1
jmp case.default.0x406560
push 0x10
call fcn.0040bcf0
mov ecx, dword [0x462080]
mov esi, eax
lea eax, [ebp - 0x104]
push eax
mov dword [esi], ecx
call fcn.0040bdd0
mov dword [esi + 4], eax
lea eax, [ebp - 0x204]
push eax
call fcn.0040bdd0
mov dword [esi + 8], eax
add esp, 0xc
mov dword [esi + 0xc], 1
mov dword [0x462080], esi
mov dword [0x464774], 1
jmp case.default.0x406560
mov eax, dword [edi + 0xc]
sub eax, 0
je 0x40677a
sub eax, 1
je 0x40674a
sub eax, 1
jne case.default.0x406560
call fcn.00401250
mov esi, dword [0x460028]
mov edi, eax
xor edx, edx
mov eax, esi
div edi
test edx, edx
je 0x406723
mov ecx, edi
sub ecx, edx
add esi, ecx
mov dword [0x460028], esi
push edi
call fcn.00407620
add esp, 4
call fcn.0040a310
mov eax, dword [0x460028]
mov dword [0x46477c], eax
mov dword [0x464774], 2
jmp case.default.0x406560
push 1
call fcn.00407620
add esp, 4
call fcn.0040a310
mov eax, dword [0x460028]
or eax, 1
mov dword [0x464774], 2
mov dword [0x460028], eax
mov dword [0x46477c], eax
jmp case.default.0x406560
push 0
call fcn.00407620
add esp, 4
call fcn.0040a310
mov eax, dword [0x460028]
inc eax
mov dword [0x464774], 2
and eax, 0xfffffffe
mov dword [0x460028], eax
mov dword [0x46477c], eax
jmp case.default.0x406560
lea eax, [ebp - 0x504]
mov dword [0x464774], 1
push 0x200
push eax
call fcn.004021a0
add esp, 8
cmp dword [0x4647e8], 2
jne case.default.0x406560
lea eax, [ebp - 0x504]
push eax
push 0x4545b8
call fcn.004086c0
add esp, 8
jmp case.default.0x406560
lea eax, [ebp - 0x52c]
push eax
call fcn.00401510
add esp, 4
call fcn.00402440
test eax, eax
je 0x406818
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.004015c0
add esp, 8
mov eax, dword [ebp - 0x528]
test eax, eax
je 0x406832
push 0x65
call fcn.0040b980
mov eax, dword [ebp - 0x528]
add esp, 4
mov dword [0x464774], 5
mov dword [0x464770], 0
mov dword [0x46477c], eax
jmp case.default.0x406560
mov ecx, dword [edi + 0xc]
mov eax, ecx
sub eax, 0
je 0x4068a7
sub eax, 1
je 0x406864
sub eax, 1
jne 0x4068a7
xor eax, eax
cmp ecx, 2
sete al
cmp dword [0x4647e8], 0
mov dword [ebp - 0x508], eax
je 0x406893
cmp dword [0x460088], eax
je 0x406893
push 0x6d
call fcn.0040b980
mov eax, dword [ebp - 0x508]
add esp, 4
mov dword [0x460088], eax
mov dword [0x464774], 1
jmp case.default.0x406560
lea eax, [ebp - 0x52c]
push eax
call fcn.00401510
lea eax, [ebp - 0x52c]
push 0
push eax
call fcn.004015c0
lea eax, [ebp - 0x52c]
push eax
call fcn.004016f0
add esp, 0x10
test eax, eax
jne 0x4068de
push 0x6f
call fcn.0040b980
add esp, 4
mov eax, dword [ebp - 0x528]
cmp eax, dword [0x464794]
jb 0x406905
push 0x6f
call fcn.0040b980
add esp, 4
mov dword [0x464774], 1
jmp case.default.0x406560
mov dword [0x464780], eax
mov dword [0x464774], 1
jmp case.default.0x406560
mov dword [0x464774], 1
call fcn.00402440
test eax, eax
je case.default.0x406560
push str..__.END.
call fcn.0040bc00
add esp, 4
cmp byte [eax + 0xc], 0
je 0x406953
test byte [eax + 0xd], 4
jne 0x406953
push 0x6d
call fcn.0040b980
add esp, 4
push 1
lea eax, [ebp - 0x52c]
push eax
push str..__.END.
call fcn.00407750
add esp, 0xc
jmp case.default.0x406560
test esi, esi
je 0x40698c
mov eax, dword [ebp - 0x514]
push esi
mov dword [0x464518], eax
call fcn.00408d20
mov dword [0x464774], 1
jmp 0x406992
push edi
call fcn.0040c230
mov eax, dword [0x464da8]
add esp, 4
cmp dword [eax + 4], 1
jne case.default.0x406560
cmp dword [0x4647cc], 0
je 0x4069b7
cmp dword [0x4647e8], 1
jne 0x4069b7
call fcn.004010c0
cmp dword [0x46479c], 0
je case.default.0x406560
cmp dword [0x4647e8], 1
jne case.default.0x406560
call fcn.00401130
mov edi, 1
call fcn.00402130
movsx eax, al
mov dword [ebp - 0x508], eax
test eax, eax
jne 0x404893
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
cmp dword [0x464ab8], 0
jne 0x4073fe
push 0x6f
call fcn.0040b980
add esp, 4
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
call fcn.0040b9e0
push 0
call fcn.004020f0
add esp, 4
mov dword [0x464774], 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
push 0x69
call fcn.0040b980
add esp, 4
mov dword [0x464774], 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x464ab0]
test ecx, ecx
je 0x406b19
mov eax, dword [ecx*4 + 0x464a40]
dec ecx
pop esi
pop ebx
mov dword [0x464ab8], eax
mov dword [0x464ab0], ecx
mov dword [0x464774], 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
mov eax, dword [0x464ab0]
test eax, eax
je 0x406b19
cmp dword [eax*4 + 0x464a80], 0
lea ecx, [eax*4 + 0x464a80]
je 0x406ad7
mov edx, dword [eax*4 + 0x464a40]
xor esi, esi
xor edi, edi
lea eax, [edx + 1]
jmp 0x406ae7
mov eax, dword [eax*4 + 0x464a40]
mov esi, 1
mov edx, eax
mov edi, esi
mov dword [ecx], edi
mov dword [0x464ab8], eax
test edx, edx
jne 0x406b23
mov dword [0x46477c], esi
pop esi
pop ebx
mov dword [0x464774], 5
mov dword [0x464770], edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
push 0x69
call fcn.0040b980
add esp, 4
pop esi
pop ebx
mov dword [0x464774], 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x406b92
mov esi, dword [0x464518]
mov dword [ebp - 0x104], 0x66692e
call fcn.004023d0
push eax
lea eax, [ebp - 0x101]
push eax
call fcn.004021f0
lea eax, [ebp - 0x104]
push eax
call fcn.0040bca0
add esp, 0xc
test eax, eax
je 0x406b8c
cmp byte [eax + 8], 0xc
jne 0x406b8c
cmp dword [eax + 0xc], 0
je 0x406b8c
mov edi, eax
call fcn.00402ee0
jmp 0x406b92
mov dword [0x464518], esi
cmp dword [0x464ab8], 0
je 0x406ba2
xor ebx, ebx
jmp 0x406d22
mov eax, dword [edi + 0xc]
cmp eax, 0xf
ja case.default.0x406bb5
movzx eax, byte [eax + 0x4075dc]
jmp dword [eax*4 + 0x4075c8]
call fcn.00401250
mov ecx, dword [edi + 0xc]
cmp ecx, 0xb
ja case.0x406bc9.0
jmp dword [ecx*4 + 0x4075ec]
xor ebx, ebx
test eax, eax
sete bl
jmp 0x406d22
xor ebx, ebx
test eax, eax
setg bl
jmp 0x406d22
xor ebx, ebx
test eax, eax
sets bl
jmp 0x406d22
xor ebx, ebx
test eax, eax
setns bl
jmp 0x406d22
xor ebx, ebx
test eax, eax
setle bl
jmp 0x406d22
xor ebx, ebx
test eax, eax
setne bl
jmp 0x406d22
push 0
call fcn.004020f0
xor ebx, ebx
add esp, 4
test eax, eax
sete bl
test eax, eax
jne 0x406c4d
lea eax, [ebp - 0x104]
push eax
call fcn.00408c90
xor eax, eax
cmp byte [ebp - 0x104], al
push eax
cmove ebx, eax
call fcn.004020f0
add esp, 8
mov eax, dword [edi + 0xc]
sub eax, 0xc
je 0x406c5e
sub eax, 1
je 0x406d22
xor ebx, 1
jmp 0x406d22
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004021f0
lea eax, [ebp - 0x104]
push eax
call fcn.0040bb70
add esp, 0xc
test eax, eax
je 0x406c94
cmp dword [eax + 0xc], 0
je 0x406c94
mov ebx, 1
jmp 0x406cb0
lea eax, [ebp - 0x104]
push eax
call fcn.0040bd80
add esp, 4
xor ebx, ebx
test eax, eax
je 0x406cb0
cmp byte [eax + 0xc], 1
sete bl
mov eax, dword [edi + 0xc]
sub eax, 4
je 0x406d22
sub eax, 1
jne 0x406d22
xor ebx, 1
jmp 0x406d22
lea eax, [ebp - 0x104]
push eax
call fcn.00408c90
push 0
call fcn.004020f0
lea eax, [ebp - 0x304]
push eax
call fcn.00408c90
push dword [0x464798]
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040be50
mov ecx, dword [edi + 0xc]
add esp, 0x18
sub ecx, 0xe
je case.0x406bc9.0
sub ecx, 1
jne case.0x406bc9.0
xor ebx, ebx
test eax, eax
sete bl
jmp 0x406d22
xor ebx, ebx
call fcn.0040b9e0
mov eax, dword [edi + 0xc]
mov ecx, eax
sub ecx, 1
je 0x406db4
sub ecx, 1
je 0x406db4
sub ecx, 1
je 0x406db4
mov ecx, dword [0x464ab0]
cmp ecx, 0xa
jge 0x406d6f
mov eax, dword [0x464ab8]
inc ecx
mov dword [0x464ab0], ecx
mov dword [ecx*4 + 0x464a80], ebx
mov dword [ecx*4 + 0x464a40], eax
test ebx, ebx
jne 0x406d7f
inc dword [0x464ab8]
jmp 0x406d7f
push 0x69
call fcn.0040b980
mov ecx, dword [0x464ab0]
add esp, 4
cmp dword [ecx*4 + 0x464a40], 0
jne 0x406dc8
pop esi
mov dword [0x46477c], ebx
mov eax, 5
pop ebx
mov dword [0x464770], 0
mov dword [0x464774], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x464ab0]
test ecx, ecx
jne 0x406de3
push 0x69
call fcn.0040b980
add esp, 4
mov eax, 1
pop esi
pop ebx
mov dword [0x464774], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
cmp dword [ecx*4 + 0x464a40], 0
jne 0x406dc8
cmp dword [ecx*4 + 0x464a80], 0
je 0x406e2b
sub eax, 1
je 0x406e3a
sub eax, 1
je 0x406e06
sub eax, 1
jne 0x406e3a
mov eax, 1
mov dword [0x464ab8], 0
mov dword [0x46477c], eax
mov eax, 5
mov dword [0x464770], 0
jmp 0x406dcd
sub eax, 1
je 0x406e06
sub eax, 1
je 0x406e3a
sub eax, 1
jmp 0x406e06
mov dword [0x464ab8], 1
xor eax, eax
jmp 0x406e15
mov dword [0x464774], 0
xor esi, esi
call fcn.00402130
movsx eax, al
mov dword [ebp - 0x508], eax
test eax, eax
je 0x4070ec
nop word [eax + eax]
cmp eax, 0x2c
jne 0x406e80
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x28
jne 0x4070ac
nop dword [eax]
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x21
jne 0x406eab
or esi, 0x2000
jmp 0x407089
push eax
call fcn.00402f00
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004021f0
push 1
lea eax, [ebp - 0x104]
push 0x45511c
push eax
call fcn.0040be50
add esp, 0x18
test eax, eax
je 0x406ee1
or esi, 1
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x455120
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x406f03
or esi, 2
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x455124
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x406f25
or esi, 4
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x455128
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x406f47
or esi, 8
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x45512c
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x406f69
or esi, 0x10
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x455130
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x406f8b
or esi, 0x20
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x455134
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x406fad
or esi, 0x40
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x455138
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x406fd2
or esi, 0x80
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x454e38
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x406ff7
or esi, 0x100
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x45513c
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x407019
or esi, 0x200
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x455140
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x40703b
or esi, 0x400
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x455144
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x40705d
or esi, 0x800
jmp 0x407089
push 1
lea eax, [ebp - 0x104]
push 0x455148
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x40707f
or esi, 0x1000
jmp 0x407089
push 0x75
call fcn.0040b980
add esp, 4
call fcn.00402130
movsx eax, al
mov dword [ebp - 0x508], eax
cmp eax, 0x2c
je 0x406e90
cmp eax, 0x29
je 0x4070cc
call fcn.0040b9e0
jmp 0x4070cc
push eax
call fcn.00402f00
add esp, 4
call fcn.00401250
test eax, eax
je 0x4070c6
or esi, 0x8000
jmp 0x4070cc
and esi, 0xffff7fff
mov ebx, esi
call fcn.00402130
movsx eax, al
mov dword [ebp - 0x508], eax
test eax, eax
jne 0x406e70
test ebx, 0x8000
jne 0x4070f9
cmp dword [0x464ab8], 0
jne 0x4073fe
test esi, 0xffff7fff
je 0x407183
test esi, 0x2000
je 0x40712f
mov eax, dword [edi + 0xc]
sub eax, 0
je 0x407126
sub eax, 1
jne 0x40712f
mov eax, 0x3ff
mov dword [0x464aac], eax
jmp 0x407134
xor eax, eax
mov dword [0x464aac], eax
jmp 0x407134
mov eax, dword [0x464aac]
and esi, 0x1fff
je 0x4073fe
mov ecx, dword [edi + 0xc]
sub ecx, 0
je 0x40716b
sub ecx, 1
jne 0x4073fe
not esi
and eax, esi
pop esi
pop ebx
mov dword [0x464aac], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
or eax, esi
pop esi
pop ebx
mov dword [0x464aac], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
sub eax, 0
je 0x4071aa
sub eax, 1
jne 0x4073fe
pop esi
pop ebx
mov dword [0x464aac], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
pop esi
pop ebx
mov dword [0x464aac], 0x3ff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
xor esi, esi
call fcn.00402130
movsx eax, al
mov dword [ebp - 0x508], eax
test eax, eax
je 0x407343
nop dword [eax]
cmp eax, 0x2c
jne 0x4071f0
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x28
jne 0x4072fa
nop dword [eax]
call fcn.004023d0
mov dword [ebp - 0x508], eax
cmp eax, 0x21
jne 0x40721b
or esi, 0x100
jmp 0x4072d7
push eax
call fcn.00402f00
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push eax
call fcn.004021f0
push 1
lea eax, [ebp - 0x104]
push 0x45514c
push eax
call fcn.0040be50
add esp, 0x18
test eax, eax
je 0x407251
or esi, 1
jmp 0x4072d7
push 1
lea eax, [ebp - 0x104]
push 0x455150
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x407270
or esi, 2
jmp 0x4072d7
push 1
lea eax, [ebp - 0x104]
push 0x455154
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x40728f
or esi, 4
jmp 0x4072d7
push 1
lea eax, [ebp - 0x104]
push 0x455158
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x4072ae
or esi, 0x10
jmp 0x4072d7
push 1
lea eax, [ebp - 0x104]
push 0x45515c
push eax
call fcn.0040be50
add esp, 0xc
test eax, eax
je 0x4072cd
or esi, 0x20
jmp 0x4072d7
push 0x75
call fcn.0040b980
add esp, 4
call fcn.00402130
movsx eax, al
mov dword [ebp - 0x508], eax
cmp eax, 0x2c
je 0x407200
cmp eax, 0x29
je 0x4072ff
call fcn.0040b9e0
jmp 0x4072ff
mov esi, 0x37
call fcn.00402130
movsx eax, al
mov dword [ebp - 0x508], eax
test eax, eax
jne 0x4071e0
test esi, esi
je 0x407343
test esi, 0x100
je 0x407348
mov eax, dword [edi + 0xc]
sub eax, 0
je 0x40733a
sub eax, 1
jne 0x407348
mov eax, 0x37
mov dword [0x464e00], eax
jmp 0x40734d
xor eax, eax
mov dword [0x464e00], eax
jmp 0x40734d
mov esi, 0x37
mov eax, dword [0x464e00]
mov ecx, dword [edi + 0xc]
sub ecx, 0
je 0x40737b
sub ecx, 1
jne 0x4073fe
not esi
and esi, 0x37
and eax, esi
pop esi
pop ebx
mov dword [0x464e00], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
and esi, 0x37
or eax, esi
pop esi
pop ebx
mov dword [0x464e00], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
mov dword [0x464774], 0
call fcn.00402440
test eax, eax
je 0x4073b6
call fcn.00401250
neg eax
sbb eax, eax
neg eax
jne 0x4073bf
cmp dword [0x464ab8], 0
jne 0x4073fe
test byte [0x464aac], 0x80
mov ecx, 0x3c
pop esi
mov eax, 1
cmovne eax, ecx
pop ebx
mov dword [0x4647f8], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret
mov dword [0x464774], 1
push dword [edi + 0xc]
call fcn.00409300
add esp, 4
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca29
mov esp, ebp
pop ebp
ret