Function at 0x40cc00
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
xor ebx, ebx
mov dword [ecx + 0x1c], 0
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], ecx
mov edi, dword [esp + 0xc]
mov ebp, ebx
nop word cs:[eax + eax]
nop dword [eax]
cmp dword [esp + 4], 0
je 0x40cc77
cmp dword [0x51e790], 0
je 0x40cc77
cmp dword [esi + 0x24], 0
jne 0x40d247
cmp dword [0x51d0e0], 0
je 0x40d247
push dword [esi + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
mov edx, dword [esi + 0x24]
test edx, edx
je 0x40cc90
mov ecx, edi
jmp 0x40ccce
test ebp, ebp
mov eax, 0x51e7a8
mov ecx, 0x51e794
cmovle eax, ecx
push eax
push 0x501b14
call fcn.00405eb0
add esp, 8
push 1
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call ebx
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
push 0
call ebx
add esp, 4
mov ecx, edi
mov edx, eax
call fcn.0041a150
mov edi, eax
test eax, eax
je 0x40d22c
cmp dword [0x51e7bc], 0
je 0x40ccfa
cmp dword [esi + 0x24], 0
jne 0x40d247
mov dword [0x51e7bc], 0
inc dword [esi + 0x1c]
test ebp, ebp
mov bl, byte [edi]
jne 0x40cdbe
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test bl, bl
je 0x40cda0
mov bh, bl
mov esi, edi
jmp 0x40cd38
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov bh, byte [esi + 1]
inc esi
test bh, bh
je 0x40cda0
movzx eax, bh
push eax
call ebp
add esp, 4
test eax, eax
jne 0x40cd30
xor ebp, ebp
mov cl, 1
cmp bh, 0x2d
je 0x40cd74
cmp bh, 0x2f
jne 0x40cdc0
cmp byte [esi + 1], 0x2a
jne 0x40cdc0
add esi, 3
jmp 0x40cd66
cmp byte [esi], 0x2f
je 0x40cd1b
inc esi
movzx eax, byte [esi - 1]
cmp al, 0x2a
je 0x40cd60
test al, al
jne 0x40cd65
jmp 0x40cdc0
cmp byte [esi + 1], 0x2d
jne 0x40cdc0
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esi, 2
nop word cs:[eax + eax]
nop dword [eax]
movzx eax, byte [esi]
test al, al
je 0x40cda0
cmp al, 0xa
je 0x40cd30
inc esi
jmp 0x40cd90
mov esi, dword [esp + 8]
xor ebp, ebp
test byte [esi + 0x5c], 0x40
je 0x40cc50
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
jmp 0x40cc50
xor ecx, ecx
cmp bl, 0x2e
je 0x40cdca
cmp bl, 0x23
jne 0x40ce20
test cl, cl
je 0x40ce20
mov esi, dword [esp + 8]
test byte [esi + 0x5c], 0x40
je 0x40cde3
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
mov bl, byte [edi]
xor ebp, ebp
cmp bl, 0x2e
jne 0x40cc50
mov ecx, edi
mov edx, esi
call fcn.00405f30
mov ebp, eax
test eax, eax
je 0x40cc50
cmp ebp, 2
je 0x40d2be
inc dword [esp + 4]
xor ebp, ebp
jmp 0x40cc50
movzx esi, bl
mov dword [esp + 0x18], ecx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
mov ecx, edi
inc edi
test eax, eax
mov dword [esp + 0xc], ecx
je 0x40ce58
nop dword [eax]
movzx ebx, byte [edi]
movzx esi, bl
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
inc edi
test eax, eax
jne 0x40ce40
lea ecx, [edi - 1]
cmp bl, 0x2f
mov dword [esp + 0x20], ecx
jne 0x40cef2
mov al, byte [edi]
test al, al
je 0x40cf8e
mov ebx, edi
jmp 0x40ce8c
mov al, byte [ebx + 1]
inc ebx
test al, al
je 0x40cf8e
mov byte [esp + 0x13], al
movzx eax, al
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
test eax, eax
jne 0x40ce80
mov al, byte [esp + 0x13]
cmp al, 0x2d
je 0x40ced4
cmp al, 0x2f
jne 0x40cef2
cmp byte [ebx + 1], 0x2a
jne 0x40cef2
add ebx, 3
jmp 0x40cec6
cmp byte [ebx], 0x2f
je 0x40ce80
inc ebx
movzx eax, byte [ebx - 1]
cmp al, 0x2a
je 0x40cec0
test al, al
jne 0x40cec5
jmp 0x40cef2
cmp byte [ebx + 1], 0x2d
jne 0x40cef2
add ebx, 2
nop dword [eax]
movzx eax, byte [ebx]
test al, al
je 0x40cf8e
cmp al, 0xa
je 0x40ce80
inc ebx
jmp 0x40cee0
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
add esp, 4
cmp al, 0x67
jne 0x40cfb7
movzx eax, byte [edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ecx, dword [esp + 0x24]
add esp, 4
cmp al, 0x6f
jne 0x40cfb7
mov bl, byte [ecx + 2]
test bl, bl
je 0x40cf8e
add ecx, 2
mov esi, ecx
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
test eax, eax
je 0x40cf46
mov ecx, esi
mov bl, byte [ecx + 1]
inc ecx
test bl, bl
jne 0x40cf27
jmp 0x40cf8e
cmp bl, 0x2d
mov ecx, esi
je 0x40cf74
cmp bl, 0x2f
jne 0x40cfb7
cmp byte [ecx + 1], 0x2a
jne 0x40cfb7
add ecx, 3
jmp 0x40cf66
cmp byte [ecx], 0x2f
je 0x40cf3c
inc ecx
movzx eax, byte [ecx - 1]
cmp al, 0x2a
je 0x40cf60
test al, al
jne 0x40cf65
jmp 0x40cfb7
cmp byte [ecx + 1], 0x2d
jne 0x40cfb7
add ecx, 2
nop dword [eax]
movzx eax, byte [ecx]
test al, al
je 0x40cf8e
cmp al, 0xa
je 0x40cf3c
inc ecx
jmp 0x40cf80
cmp dword [esp], 0
je 0x40cfae
mov esi, dword [esp]
mov word [esi + ebp], 0x3b
push esi
call fcn.0042ee60
add esp, 4
test eax, eax
mov byte [esi + ebp], 0
je 0x40cfb7
mov eax, dword [esp + 0xc]
mov word [eax], 0x3b
mov eax, dword [esp + 0xc]
lea edi, [eax - 1]
nop
cmp byte [edi + 1], 0
lea edi, [edi + 1]
jne 0x40cfc0
sub edi, dword [esp + 0xc]
and edi, 0x3fffffff
lea eax, [edi + ebp + 2]
cmp eax, dword [esp + 0x1c]
jge 0x40cfe3
mov eax, dword [esp + 0x18]
jmp 0x40d009
lea eax, [edi + ebp]
add eax, 0x64
mov dword [esp + 0x1c], eax
push eax
push dword [esp + 4]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [esp], eax
test eax, eax
mov eax, dword [esp + 0x18]
je 0x40d300
test al, al
je 0x40d057
mov ebx, dword [esp + 0xc]
xor esi, esi
movzx eax, byte [ebx]
test eax, eax
je 0x40d07d
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
test eax, eax
mov eax, ebx
je 0x40d07f
mov ecx, 1
nop
mov eax, dword [esp + 0xc]
mov esi, ecx
movzx eax, byte [eax + ecx]
test eax, eax
je 0x40d04f
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
lea ecx, [esi + 1]
test eax, eax
jne 0x40d030
mov eax, dword [esp + 0xc]
add eax, esi
jmp 0x40d07f
mov eax, dword [esp]
lea ecx, [edi + 1]
mov byte [eax + ebp], 0xa
lea eax, [eax + ebp + 1]
push ecx
push dword [esp + 0x10]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov esi, dword [esp + 8]
lea edi, [edi + ebp + 1]
jmp 0x40d09d
mov eax, ebx
sub edi, esi
lea ecx, [edi + 1]
push ecx
push eax
push dword [esp + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
xor ebx, ebx
test edi, edi
je 0x40cc3d
cmp edi, ebp
jle 0x40d10a
nop dword [eax + eax]
mov eax, dword [esp]
cmp byte [eax + ebp], 0x3b
je 0x40d0c0
inc ebp
cmp edi, ebp
jne 0x40d0b0
jmp 0x40d10a
push dword [esp]
call fcn.0042ee60
add esp, 4
test eax, eax
je 0x40d10a
mov edx, dword [esp]
mov ecx, esi
push dword [esp + 0x14]
push dword [esi + 0x24]
call fcn.00419c80
add esp, 8
mov ebp, eax
add ebp, dword [esp + 4]
cmp dword [esi + 0x14], 0
je 0x40d1bd
mov ecx, esi
call fcn.0040d470
mov dword [esi + 0x14], 0
mov dword [esp + 4], ebp
jmp 0x40cc3d
mov esi, dword [esp]
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
mov bl, byte [esi]
test bl, bl
jne 0x40d158
mov esi, dword [esp + 8]
mov ebx, 0
test byte [esi + 0x5c], 0x40
je 0x40cc3d
push dword [esp]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
jmp 0x40cc3d
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
nop word cs:[eax + eax]
nop dword [eax]
mov bl, byte [esi + 1]
inc esi
test bl, bl
je 0x40d119
movzx eax, bl
push eax
call ebp
add esp, 4
test eax, eax
jne 0x40d150
cmp bl, 0x2d
je 0x40d194
cmp bl, 0x2f
jne 0x40d1b2
cmp byte [esi + 1], 0x2a
jne 0x40d1b2
add esi, 3
jmp 0x40d186
cmp byte [esi], 0x2f
je 0x40d13c
inc esi
movzx eax, byte [esi - 1]
cmp al, 0x2a
je 0x40d180
test al, al
jne 0x40d185
jmp 0x40d1b2
cmp byte [esi + 1], 0x2d
jne 0x40d1b2
add esi, 2
nop dword [eax]
movzx eax, byte [esi]
test al, al
je 0x40d119
cmp al, 0xa
je 0x40d150
inc esi
jmp 0x40d1a0
mov esi, dword [esp + 8]
mov ebx, edi
jmp 0x40cc3d
mov eax, dword [esi + 0x74]
mov ecx, ebp
mov dword [esp + 4], ebp
test eax, eax
je 0x40cc3d
cmp byte [esi + 0xb], 0
mov ecx, ebp
mov dword [esp + 4], ebp
jne 0x40cc3d
push eax
call fcn.0041f7a0
add esp, 4
mov edi, eax
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wunlink]
add esp, 4
mov dword [esp + 4], eax
push edi
call fcn.0041c220
add esp, 4
cmp dword [esp + 4], 0
mov eax, ebp
mov dword [esp + 4], ebp
jne 0x40cc3d
push dword [esi + 0x74]
call fcn.0041c220
add esp, 4
mov dword [esi + 0x74], 0
mov dword [esp + 4], ebp
jmp 0x40cc3d
xor edi, edi
cmp dword [esi + 0x24], 0
jne 0x40d247
cmp dword [0x51d0e0], 0
je 0x40d247
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putchar
add esp, 4
test ebp, ebp
je 0x40d2be
mov ebp, dword [esp]
mov bl, byte [ebp]
test bl, bl
je 0x40d2dc
mov esi, ebp
jmp 0x40d268
mov bl, byte [esi + 1]
inc esi
test bl, bl
je 0x40d2dc
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
test eax, eax
jne 0x40d260
cmp bl, 0x2d
je 0x40d2a4
cmp bl, 0x2f
jne 0x40d2c3
cmp byte [esi + 1], 0x2a
jne 0x40d2c3
add esi, 3
jmp 0x40d296
cmp byte [esi], 0x2f
je 0x40d260
inc esi
movzx eax, byte [esi - 1]
cmp al, 0x2a
je 0x40d290
test al, al
jne 0x40d295
jmp 0x40d2c3
cmp byte [esi + 1], 0x2d
jne 0x40d2c3
add esi, 2
nop dword [eax]
movzx eax, byte [esi]
test al, al
je 0x40d2dc
cmp al, 0xa
je 0x40d260
inc esi
jmp 0x40d2b0
mov ebp, dword [esp]
jmp 0x40d2dc
mov ecx, dword [esp + 8]
mov edx, ebp
push dword [esp + 0x14]
push dword [ecx + 0x24]
call fcn.00419c80
add esp, 8
add dword [esp + 4], eax
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor eax, eax
cmp dword [esp + 4], 0
setg al
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.Error:_out_of_memory_n
push eax
call fcn.00404690
add esp, 8
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit