Function at 0x4018b0
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
sub esp, 0x268
push ebx
mov eax, dword [esp + 0x270]
push ebp
push esi
mov esi, dword [esp + 0x27c]
push edi
push 2
push 1
push 0
push 3
push 4
mov ebx, ecx
push esi
push eax
mov dword [esp + 0x30], ebx
call fcn.00401c10
lea ecx, [esp + 0x1c]
push ecx
call sub.cvdll.dll_int___cdecl_ctm_int__
mov ecx, 0xa
lea edi, [esp + 0x54]
add esp, 4
mov byte [esp + 0x178], 0
rep movsd dword es:[edi], dword [esi]
xor ebp, ebp
movsx edx, byte [esp + ebp + 0x50]
push edx
lea eax, [esp + 0x2c]
push 0x4050d0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x178]
mov esi, edi
mov edi, edx
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
inc ebp
cmp ebp, 0x10
rep movsb byte es:[edi], byte [esi]
jl 0x401901
xor esi, esi
mov edi, dword [esp + 0x27c]
lea ecx, [esp + 0x28]
movsx eax, byte [esi + edi]
push eax
push 0x4050cc
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov dl, byte [esp + 0x34]
add esp, 0xc
mov byte [esi + edi], dl
inc esi
cmp esi, 8
jl 0x401952
push 0x4050c8
lea eax, [ebx + 0xc0]
push str.hzjkru
push eax
lea ecx, [esp + 0x84]
push str._s_s._s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
lea edx, [esp + 0x8c]
push 0x4050b0
push edx
call ebp
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4019e6
lea eax, [esp + 0x78]
push 0x4050ac
push eax
call ebp
add esp, 8
test eax, eax
jne 0x401a20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret 0xc
xor ebx, ebx
mov ebp, 4
push 0
push ebp
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fgetc]
sub al, 0x20
add esp, 0x10
mov byte [esp + ebx + 0x50], al
add ebp, 3
inc ebx
cmp ebp, 0x7c
jl 0x4019ed
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 0
push ecx
call dword [sym.imp.MSVCRT.dll_time]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_localtime]
push 0x4050c8
add ebx, 0x2c0
push str.cam1
push ebx
lea eax, [esp + 0x8c]
push str._s_s._s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x94]
push 0x4050b0
push ecx
call ebp
add esp, 0x24
mov esi, eax
test esi, esi
push 0
jne 0x401a82
call dword [sym.imp.MSVCRT.dll_exit]
push 0xc6
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x38]
push 4
push edx
call ebx
push 0
push 0x116
push esi
call edi
push esi
push 1
lea eax, [esp + 0x50]
push 4
push eax
call ebx
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
add ecx, 0x15180
add esp, 0x38
cmp eax, ecx
jle 0x401ae4
push 0
push 0x116
push esi
call edi
push esi
push 1
lea edx, [esp + 0x24]
push 4
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
cmp dword [esp + 0x10], 0x5234265f
jg 0x401bf6
cmp dword [esp + 0x1c], 0xc5e
jne 0x401bf6
push 0x4050c8
push str.hzjkru
lea eax, [esp + 0x80]
push str._s._s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x88]
push 0x4050b0
push ecx
call ebp
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x401b5b
lea edx, [esp + 0x78]
push 0x4050ac
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x401b5b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret 0xc
mov dword [esp + 0x14], 0
mov ebx, 4
push 0
push ebx
push ebp
call edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28c]
push ebp
movsx edx, byte [eax + ecx]
add edx, 0x20
push edx
call dword [sym.imp.MSVCRT.dll_fputc]
mov edx, dword [esp + 0x28]
add esp, 0x14
add ebx, 3
inc edx
cmp ebx, 0x7c
mov dword [esp + 0x14], edx
jl 0x401b68
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
push 0
push 0x34
push esi
mov dword [esp + 0x28], 0
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea eax, [esp + 0x30]
push 1
push eax
call ebx
push 0
push 0xc6
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x44]
push 4
push ecx
call ebx
push 0
push 0x116
push esi
call edi
add esp, 0x48
lea edx, [esp + 0x10]
push esi
push 1
push 4
push edx
call ebx
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret 0xc