Function at 0x405d1a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1498
call fcn.00408580
push edi
mov al, byte [0x418f4c]
mov byte [ebp - 0x48], al
xor ecx, ecx
mov dword [ebp - 0x47], ecx
mov dword [ebp - 0x43], ecx
mov dword [ebp - 0x3f], ecx
mov dword [ebp - 0x3b], ecx
mov word [ebp - 0x37], cx
mov byte [ebp - 0x35], cl
mov dword [ebp - 0x148c], 0
mov dword [ebp - 0x1454], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x1490], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dl, byte [0x418f50]
mov byte [ebp - 0x1450], dl
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x144f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x418f54]
mov byte [ebp - 0x1488], al
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x1487]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov cl, byte [0x418f58]
mov byte [ebp - 0x34], cl
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dl, byte [0x418f5c]
mov byte [ebp - 0x13ec], dl
xor eax, eax
mov dword [ebp - 0x13eb], eax
mov dword [ebp - 0x1494], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x1498], 0
mov cl, byte [0x418f60]
mov byte [ebp - 0x13e4], cl
mov ecx, 0x4e1
xor eax, eax
lea edi, [ebp - 0x13e3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x63
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x13ec]
push edx
call fcn.004082e0
add esp, 8
push 0x6c
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x13ec]
push eax
call fcn.004082f0
add esp, 8
push 0x73
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x13ec]
push ecx
call fcn.004082f0
add esp, 8
push 0x57
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.004082e0
add esp, 8
push 0x72
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004082f0
add esp, 8
push 0x6f
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004082f0
add esp, 8
push 0x6e
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.004082f0
add esp, 8
push 0x67
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004082f0
add esp, 8
push 0x20
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004082f0
add esp, 8
push 0x50
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.004082f0
add esp, 8
push 0x61
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004082f0
add esp, 8
push 0x73
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004082f0
add esp, 8
push 0x73
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.004082f0
add esp, 8
push 0x77
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004082f0
add esp, 8
push 0x6f
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004082f0
add esp, 8
push 0x72
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.004082f0
add esp, 8
push 0x64
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004082f0
add esp, 8
push 0x50
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x1488]
push ecx
call fcn.004082e0
add esp, 8
push 0x72
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x1488]
push edx
call fcn.004082f0
add esp, 8
push 0x6f
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x1488]
push eax
call fcn.004082f0
add esp, 8
push 0x74
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x1488]
push ecx
call fcn.004082f0
add esp, 8
push 0x65
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x1488]
push edx
call fcn.004082f0
add esp, 8
push 0x63
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x1488]
push eax
call fcn.004082f0
add esp, 8
push 0x74
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x1488]
push ecx
call fcn.004082f0
add esp, 8
push 0x65
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x1488]
push edx
call fcn.004082f0
add esp, 8
push 0x64
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x1488]
push eax
call fcn.004082f0
add esp, 8
push 0x20
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x1488]
push ecx
call fcn.004082f0
add esp, 8
push 0x66
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x1488]
push edx
call fcn.004082f0
add esp, 8
push 0x69
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x1488]
push eax
call fcn.004082f0
add esp, 8
push 0x6c
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x1488]
push ecx
call fcn.004082f0
add esp, 8
push 0x65
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x1488]
push edx
call fcn.004082f0
add esp, 8
push 0x2e
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x1488]
push eax
call fcn.004082f0
add esp, 8
push 0x20
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x1488]
push ecx
call fcn.004082f0
add esp, 8
push 0x45
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x1488]
push edx
call fcn.004082f0
add esp, 8
push 0x6e
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x1488]
push eax
call fcn.004082f0
add esp, 8
push 0x74
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x1488]
push ecx
call fcn.004082f0
add esp, 8
push 0x65
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x1488]
push edx
call fcn.004082f0
add esp, 8
push 0x72
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x1488]
push eax
call fcn.004082f0
add esp, 8
push 0x20
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x1488]
push ecx
call fcn.004082f0
add esp, 8
push 0x50
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x1488]
push edx
call fcn.004082f0
add esp, 8
push 0x61
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x1488]
push eax
call fcn.004082f0
add esp, 8
push 0x73
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x1488]
push ecx
call fcn.004082f0
add esp, 8
push 0x73
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x1488]
push edx
call fcn.004082f0
add esp, 8
push 0x77
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x1488]
push eax
call fcn.004082f0
add esp, 8
push 0x6f
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x1488]
push ecx
call fcn.004082f0
add esp, 8
push 0x72
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x1488]
push edx
call fcn.004082f0
add esp, 8
push 0x64
call fcn.00405864
add esp, 4
push eax
lea eax, [ebp - 0x1488]
push eax
call fcn.004082f0
add esp, 8
push 0x3a
call fcn.00405864
add esp, 4
push eax
lea ecx, [ebp - 0x1488]
push ecx
call fcn.004082f0
add esp, 8
push 0x20
call fcn.00405864
add esp, 4
push eax
lea edx, [ebp - 0x1488]
push edx
call fcn.004082f0
add esp, 8
mov dword [ebp - 0x54], 1
jmp 0x4062fa
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 4
jge 0x40676a
lea ecx, [ebp - 0x13ec]
push ecx
call fcn.004081b8
add esp, 4
push 0x411258
lea edx, [ebp - 0x48]
push edx
call fcn.004082e0
add esp, 8
mov dword [ebp - 0x58], 8
mov dword [ebp - 0x5c], 0x28
mov eax, dword [ebp - 0x58]
cdq
sub eax, edx
sar eax, 1
mov ecx, 0xc
sub ecx, eax
add ecx, 1
mov dword [ebp - 0x148c], ecx
mov eax, dword [ebp - 0x5c]
cdq
sub eax, edx
sar eax, 1
mov edx, 0x28
sub edx, eax
mov dword [ebp - 0x1454], edx
push 1
mov eax, dword [ebp - 0x1454]
push eax
mov ecx, dword [ebp - 0x148c]
push ecx
mov edx, dword [0xf10c20]
push edx
call fcn.00407beb
add esp, 0x10
push 1
push 9
lea eax, [ebp - 0x48]
push eax
call fcn.00405924
add esp, 0xc
push eax
push 0x41126c
call fcn.004087c6
add esp, 8
push 1
mov ecx, dword [ebp - 0x1454]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x148c]
lea ecx, [eax + edx - 1]
push ecx
mov edx, dword [0xf10c20]
push edx
call fcn.00407beb
add esp, 0x10
push 1
push 0xf
lea eax, [ebp - 0x48]
push eax
call fcn.00405924
add esp, 0xc
push eax
push 0x411270
call fcn.004087c6
add esp, 8
mov dword [ebp - 0x1490], 1
jmp 0x4063fb
mov ecx, dword [ebp - 0x1490]
add ecx, 1
mov dword [ebp - 0x1490], ecx
mov edx, dword [ebp - 0x5c]
sub edx, 1
cmp dword [ebp - 0x1490], edx
jge 0x40649f
push 1
mov eax, dword [ebp - 0x1454]
add eax, dword [ebp - 0x1490]
push eax
mov ecx, dword [ebp - 0x148c]
push ecx
mov edx, dword [0xf10c20]
push edx
call fcn.00407beb
add esp, 0x10
push 1
push 0xa
lea eax, [ebp - 0x48]
push eax
call fcn.00405924
add esp, 0xc
push eax
push 0x411274
call fcn.004087c6
add esp, 8
push 1
mov ecx, dword [ebp - 0x1454]
add ecx, dword [ebp - 0x1490]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x148c]
lea ecx, [eax + edx - 1]
push ecx
mov edx, dword [0xf10c20]
push edx
call fcn.00407beb
add esp, 0x10
push 1
push 0xa
lea eax, [ebp - 0x48]
push eax
call fcn.00405924
add esp, 0xc
push eax
push 0x411278
call fcn.004087c6
add esp, 8
jmp 0x4063ec
push 1
mov ecx, dword [ebp - 0x1454]
add ecx, dword [ebp - 0x1490]
push ecx
mov edx, dword [ebp - 0x148c]
push edx
mov eax, dword [0xf10c20]
push eax
call fcn.00407beb
add esp, 0x10
push 1
push 0xb
lea ecx, [ebp - 0x48]
push ecx
call fcn.00405924
add esp, 0xc
push eax
push 0x41127c
call fcn.004087c6
add esp, 8
push 1
mov edx, dword [ebp - 0x1454]
add edx, dword [ebp - 0x1490]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x148c]
lea edx, [ecx + eax - 1]
push edx
mov eax, dword [0xf10c20]
push eax
call fcn.00407beb
add esp, 0x10
push 1
push 0xd
lea ecx, [ebp - 0x48]
push ecx
call fcn.00405924
add esp, 0xc
push eax
push 0x411280
call fcn.004087c6
add esp, 8
mov dword [ebp - 0x1490], 1
jmp 0x406545
mov edx, dword [ebp - 0x1490]
add edx, 1
mov dword [ebp - 0x1490], edx
mov eax, dword [ebp - 0x58]
sub eax, 1
cmp dword [ebp - 0x1490], eax
jge 0x4065e7
push 1
mov ecx, dword [ebp - 0x1454]
push ecx
mov edx, dword [ebp - 0x148c]
add edx, dword [ebp - 0x1490]
push edx
mov eax, dword [0xf10c20]
push eax
call fcn.00407beb
add esp, 0x10
push 1
push 0xc
lea ecx, [ebp - 0x48]
push ecx
call fcn.00405924
add esp, 0xc
push eax
push 0x411284
call fcn.004087c6
add esp, 8
push 1
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x1454]
lea ecx, [eax + edx - 1]
push ecx
mov edx, dword [ebp - 0x148c]
add edx, dword [ebp - 0x1490]
push edx
mov eax, dword [0xf10c20]
push eax
call fcn.00407beb
add esp, 0x10
push 1
push 0xc
lea ecx, [ebp - 0x48]
push ecx
call fcn.00405924
add esp, 0xc
push eax
push 0x411288
call fcn.004087c6
add esp, 8
jmp 0x406536
push 1
push 0x18
push 0xb
mov edx, dword [0xf10c20]
push edx
call fcn.00407beb
add esp, 0x10
lea eax, [ebp - 0x1488]
push eax
call fcn.004087c6
add esp, 4
push 1
push 0x18
push 0xd
mov ecx, dword [0xf10c20]
push ecx
call fcn.00407beb
add esp, 0x10
push 0x41128c
call fcn.004087c6
add esp, 4
push 0x418f64
lea edx, [ebp - 0x13e4]
push edx
call fcn.004082e0
add esp, 8
mov byte [ebp - 0x1498], 0
mov dword [ebp - 0x4c], 0
movsx eax, byte [ebp - 0x1498]
cmp eax, 0xd
je 0x406710
call fcn.0040f60a
mov byte [ebp - 0x1498], al
movsx ecx, byte [ebp - 0x1498]
test ecx, ecx
je 0x40670b
movsx edx, byte [ebp - 0x1498]
cmp edx, 8
jne 0x4066bf
cmp dword [ebp - 0x4c], 0
jle 0x4066bd
push 8
call fcn.0040f5c6
add esp, 4
push 0x20
call fcn.0040f5c6
add esp, 4
push 8
call fcn.0040f5c6
add esp, 4
mov eax, dword [ebp - 0x4c]
sub eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov byte [ebp + ecx - 0x13e4], 0
jmp 0x40670b
movsx edx, byte [ebp - 0x1498]
cmp edx, 0xd
je 0x40670b
cmp dword [ebp - 0x4c], 0
jne 0x4066e5
push 0x418f68
lea eax, [ebp - 0x13e4]
push eax
call fcn.004082e0
add esp, 8
mov ecx, dword [ebp - 0x4c]
mov dl, byte [ebp - 0x1498]
mov byte [ebp + ecx - 0x13e4], dl
push 0x411294
call fcn.004087c6
add esp, 4
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x40664f
lea ecx, [ebp - 0x13e4]
push ecx
call fcn.00405b47
add esp, 4
push eax
lea edx, [ebp - 0x1450]
push edx
call fcn.004082e0
add esp, 8
mov dword [ebp - 0x1494], 0
push 0x4189d4
lea eax, [ebp - 0x1450]
push eax
call fcn.004083d0
add esp, 8
mov dword [ebp - 0x1494], eax
cmp dword [ebp - 0x1494], 0
jne 0x406765
mov dword [ebp - 0x50], 1
jmp 0x40676a
jmp 0x4062f1
lea ecx, [ebp - 0x13ec]
push ecx
call fcn.004081b8
add esp, 4
cmp dword [ebp - 0x50], 0
jne 0x4067cb
push 0xd
lea edx, [ebp - 0x34]
push edx
mov eax, dword [0xf10c20]
push eax
call fcn.0040790d
add esp, 0xc
push 0x7d0
call fcn.00407c46
add esp, 4
lea ecx, [ebp - 0x13ec]
push ecx
call fcn.004081b8
add esp, 4
push 1
push 1
push 1
mov edx, dword [0xf10c20]
push edx
call fcn.00407beb
add esp, 0x10
push 1
call fcn.004086f1
push 1
push 1
push 1
mov eax, dword [0xf10c20]
push eax
call fcn.00407beb
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret