Function at 0x5a4860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov ax, word [0x70835c]
push ebx
xor ecx, ecx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3e], ecx
push str.FOR_DISABLE_STACK_TRACE
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x40], ax
mov dword [ebp - 0x3a], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.005aab60
add esp, 4
mov esi, 1
test eax, eax
je 0x5a48a2
mov dword [ebp - 0x14], esi
lea edx, [ebp - 8]
push edx
push ebx
push 0x4000
call fcn.005a3d00
add esp, 0xc
cmp eax, ebx
je 0x5a48bd
mov dword [ebp - 0xc], ebx
jmp 0x5a48cc
mov edi, dword [ebp - 8]
mov ecx, 0x1000
xor eax, eax
mov dword [ebp - 0xc], esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp ecx, ebx
je 0x5a48e2
mov eax, edi
mov ebx, edi
shr eax, 0x1e
mov dword [ebp + 8], eax
jmp 0x5a48f0
mov ebx, dword [ebp + 0x1c]
mov eax, edi
mov dword [ebp + 8], eax
and ebx, 0xffff0000
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x5a4904
mov edx, ebx
xor edx, dword [ebp + 0x14]
and edx, 0xffff
xor ebx, edx
cmp eax, esi
jle 0x5a490c
inc eax
mov dword [ebp + 8], eax
test ecx, ecx
je 0x5a51a4
mov edx, dword [0x630ec0]
xor eax, eax
test edx, edx
jbe 0x5a4936
mov ecx, 0x630ec8
cmp dword [ecx], edi
je 0x5a4933
inc eax
add ecx, 4
cmp eax, edx
jb 0x5a4925
jmp 0x5a4936
mov dword [ebp + 0x10], eax
cmp eax, edx
je 0x5a4964
mov ecx, dword [ebp + 0x10]
push 0
lea eax, [ebp - 0x358]
push 0x189
mov edx, dword [ecx*4 + 0x631488]
push eax
push 0
push 0
push edx
push 0x600
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
jmp 0x5a4966
xor eax, eax
test eax, eax
jne 0x5a4992
lea edx, [ebp - 0x358]
mov edi, str.Message_not_found_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x30]
test eax, eax
jle 0x5a49bf
mov eax, dword [ebp + 0x28]
test eax, eax
mov eax, dword [ebp + 0x2c]
jne 0x5a49a6
lea eax, [ebp + 0x34]
lea ecx, [ebp - 0x358]
push eax
lea edx, [ebp - 0x1cc]
push ecx
push edx
call fcn.005c47ed
add esp, 0xc
jmp 0x5a49e8
lea edi, [ebp - 0x358]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005a4810
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x5a4abf
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5a4a2e
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1cc]
shl ebx, 0x10
mov eax, dword [edx*4 + 0x5dc840]
push ecx
mov ecx, dword [ebp - 8]
sar ebx, 0x10
push ebx
push eax
push 0x635cb8
push ecx
call fcn.005bfd29
add esp, 0x14
jmp 0x5a4f3f
lea edi, [ebp - 0x1cc]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [ebp + 8]
repne scasb al, byte es:[edi]
mov edi, dword [esi*4 + 0x5dc840]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0x15]
lea ecx, [ebp - 4]
push ecx
push 0
push eax
call fcn.005a3d00
add esp, 0xc
test eax, eax
je 0x5a4a8c
shl ebx, 0x10
sar ebx, 0x10
push ebx
lea edx, [ebp - 0x34]
push 0x635cc4
push edx
call fcn.005bfd29
lea edi, [ebp - 0x34]
add esp, 0xc
mov dword [ebp - 4], edi
jmp 0x5a4f42
mov ecx, dword [esi*4 + 0x5dc840]
mov edx, dword [ebp - 4]
shl ebx, 0x10
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x10], 1
sar ebx, 0x10
push eax
push ebx
push ecx
push str._s___i_:__s
push edx
call fcn.005bfd29
add esp, 0x14
jmp 0x5a4f3f
mov eax, dword [0x7083c0]
test eax, eax
jne 0x5a4dd2
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5a4c2e
mov eax, dword [ebp - 8]
push 0x635cd4
push eax
call fcn.005bfd29
mov edi, str.run_time_error
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp - 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x1c]
mov ecx, edx
and ecx, 3
cmp eax, 0xf
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x34], 0x46
jne 0x5a4b23
mov byte [ebp - 0x34], 0x4d
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x34]
shl ebx, 0x10
sar ebx, 0x10
push ebx
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x33], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str._s_i
add ecx, edx
push ecx
call fcn.005bfd29
mov eax, dword [ebp + 0x1c]
add esp, 0x10
cmp eax, 0x12
jl 0x5a4b5e
mov eax, 0x10
mov edi, dword [eax*4 + 0x631db8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp - 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x1cc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x1c]
not ecx
dec ecx
cmp eax, 0xb
mov edx, ecx
jge 0x5a4c03
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x5a4bd0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp - 8]
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 8]
test edx, edx
je 0x5a4bf3
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x635ce0]
dec edi
mov dword [edi], eax
mov cx, word [0x635ce4]
mov word [edi + 4], cx
jmp 0x5a4c03
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x635ce8]
repne scasb al, byte es:[edi]
mov dword [edi - 1], edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1cc]
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x635cec
add ecx, edx
push ecx
call fcn.005bfd29
add esp, 0xc
jmp 0x5a4f3f
mov edi, str.run_time_error
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x34], 0x46
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x1c]
not ecx
dec ecx
mov esi, ecx
add esi, 2
cmp eax, 0xf
jne 0x5a4c52
mov byte [ebp - 0x34], 0x4d
shl ebx, 0x10
sar ebx, 0x10
push ebx
lea ecx, [ebp - 0x33]
push 0x635cf4
push ecx
call fcn.005bfd29
lea edi, [ebp - 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [ebp - 0x2f], 0
mov ebx, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x1c]
not ecx
dec ecx
add esi, ecx
cmp eax, 0x12
jge 0x5a4c8c
mov ebx, eax
mov edi, dword [ebx*4 + 0x631db8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x1cc]
add esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x24]
not ecx
dec ecx
cmp eax, 0xb
mov edx, ecx
mov dword [ebp + 0x10], edx
jge 0x5a4cd9
test edi, edi
je 0x5a4ccd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
test edx, edx
je 0x5a4cd6
add esi, 5
jmp 0x5a4cd9
add esi, 3
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
lea esi, [esi + edx + 3]
push esi
call fcn.005a3d00
add esp, 0xc
test eax, eax
je 0x5a4cfe
lea edi, [ebp - 0x34]
mov dword [ebp - 4], edi
jmp 0x5a4f42
mov edi, dword [ebp - 4]
mov ecx, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [ebp - 0x10], 1
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx*4 + 0x631db8]
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x34]
push eax
push ecx
push str.run_time_error
push str._r_n_s_s_s
push edx
call fcn.005bfd29
mov eax, dword [ebp + 0x1c]
add esp, 0x14
cmp eax, 0xb
jge 0x5a4da7
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x5a4d71
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp - 4]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 4]
test eax, eax
je 0x5a4d97
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [str.__r_n_]
dec edi
mov dword [edi], eax
mov cx, word [0x635d08]
mov word [edi + 4], cx
jmp 0x5a4da7
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x635d0c]
repne scasb al, byte es:[edi]
mov dword [edi - 1], edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1cc]
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str._s_r_n
add ecx, edx
push ecx
call fcn.005bfd29
add esp, 0xc
jmp 0x5a4f3f
mov esi, dword [ebp + 0x1c]
mov byte [ebp - 0x34], 0x46
cmp esi, 0xf
jne 0x5a4de2
mov byte [ebp - 0x34], 0x4d
shl ebx, 0x10
sar ebx, 0x10
push ebx
lea ecx, [ebp - 0x33]
push 0x635d18
push ecx
call fcn.005bfd29
lea edi, [ebp - 0x1cc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 0x2f], 0
mov edx, ecx
mov ebx, 0x10
add edx, 2
cmp esi, 0x12
jge 0x5a4e1f
mov ebx, esi
lea edi, [ebp - 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebx*4 + 0x631db8]
not ecx
dec ecx
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov dword [ebp + 0x10], esi
dec ecx
mov eax, dword [ebp + 0x10]
mov esi, ecx
add edx, eax
mov eax, dword [ebp + 0x1c]
add esi, edx
cmp eax, 0xb
jg 0x5a4e78
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x5a4e64
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
lea edi, [ebp - 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
add esi, 7
jmp 0x5a4e7b
add esi, 5
lea ecx, [ebp - 4]
push ecx
push 0
push esi
call fcn.005a3d00
add esp, 0xc
test eax, eax
je 0x5a4e99
lea edi, [ebp - 0x34]
mov dword [ebp - 4], edi
jmp 0x5a4f42
mov edx, dword [ebp - 4]
or ecx, 0xffffffff
lea edi, [ebp - 0x34]
xor eax, eax
mov byte [edx], 0
mov dword [ebp - 0x10], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp - 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx*4 + 0x631db8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp - 4]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x1cc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp - 4]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x635d1c]
dec edi
mov word [edi], ax
mov cl, byte [0x635d1e]
mov byte [edi + 2], cl
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x5a4f4e
mov eax, dword [ebp - 0xc]
jmp 0x5a4f5a
mov eax, dword [0x7083c0]
test eax, eax
mov eax, dword [ebp - 0xc]
jne 0x5a4f6a
test eax, eax
jne 0x5a4fb4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], edi
test eax, eax
je 0x5a4fb4
jmp 0x5a4fab
test eax, eax
je 0x5a4fa1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp - 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x10]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x5a4fb4
mov eax, dword [ebp - 4]
push eax
jmp 0x5a4fac
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], edi
test eax, eax
je 0x5a4fb4
push edi
call fcn.005a3d70
add esp, 4
mov esi, dword [ebp + 8]
cmp esi, 4
je 0x5a5028
mov eax, dword [0xa4b1a4]
test eax, eax
je 0x5a4fe9
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x5a4fe9
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x5a4fe9
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5a4fe9
mov ecx, dword [ebp - 8]
mov edx, dword [eax]
push ecx
push edx
call fcn.005a5260
add esp, 8
cmp esi, 4
je 0x5a5028
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x20]
push eax
push ecx
call fcn.005a6650
mov edi, dword [ebp - 0xc]
add esp, 8
test edi, edi
je 0x5a5013
mov edx, dword [ebp - 8]
push edx
call fcn.005a3d70
add esp, 4
jmp 0x5a502b
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5a502b
mov eax, dword [ebp - 4]
push eax
call fcn.005a3d70
add esp, 4
jmp 0x5a502b
mov edi, dword [ebp - 0xc]
cmp esi, 4
jne 0x5a519d
push str.FOR_GENERATE_DEBUG_EXCEPTION
call fcn.005aab60
mov esi, dword [ebp + 0xc]
add esp, 4
test eax, eax
mov eax, dword [0xa4b1a4]
je 0x5a5078
cmp esi, 0xc00000a9
je 0x5a5078
test eax, eax
je 0x5a5078
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x5a5078
push 0
push 0
push 1
push 0xc0000025
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x5a5096
test eax, eax
je 0x5a5096
test edi, edi
je 0x5a5096
mov ecx, dword [ebp - 8]
mov edx, dword [eax]
push ecx
push edx
call fcn.005a5260
add esp, 8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x20]
push eax
push ecx
call fcn.005a6650
add esp, 8
test edi, edi
je 0x5a50b0
mov edx, dword [ebp - 8]
push edx
jmp 0x5a50bb
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5a50c3
mov eax, dword [ebp - 4]
push eax
call fcn.005a3d70
add esp, 4
mov eax, dword [0xa4b1a4]
test eax, eax
je 0x5a50d7
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x5a519d
call fcn.005ad5f0
mov eax, dword [0xa4b1a4]
test eax, eax
je 0x5a512e
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call fcn.005a3d70
mov eax, dword [0xa4b1a4]
add esp, 4
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
call fcn.005a3d70
mov eax, dword [0xa4b1a4]
add esp, 4
mov ecx, dword [eax]
push ecx
call fcn.005a3d70
mov edx, dword [0xa4b1a4]
add esp, 4
push edx
call fcn.005a3d70
add esp, 4
mov dword [0xa4b1a4], 0
push str.FOR__IS_DEBUGGER_PRESENT
call fcn.005aab60
add esp, 4
test eax, eax
je 0x5a5145
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push str.f77_dump_flag
call fcn.005bfd7b
add esp, 4
test eax, eax
jne 0x5a5172
push str.decfort_dump_flag
call fcn.005bfd7b
add esp, 4
test eax, eax
jne 0x5a5172
mov eax, dword [0x7083c0]
test eax, eax
je 0x5a5194
jmp 0x5a518a
mov al, byte [eax]
cmp al, 0x59
je 0x5a517c
cmp al, 0x79
jne 0x5a5181
call fcn.005c47d6
mov eax, dword [0x7083c0]
test eax, eax
je 0x5a5194
push 1
call fcn.005bf460
add esp, 4
push esi
call fcn.005c2233
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x5a496a
lea edx, [ebp - 0x358]
jmp 0x5a4975