Function at 0x100132f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035f8a
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x610], ecx
cmp dword [ebp + 8], 5
jle 0x10013d91
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x610]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x610]
mov edx, dword [eax + 0x18]
call edx
jmp 0x100141f8
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4ac], 0
push 0x10039e3c
call sub.ntdll.dll_strlen
add esp, 4
mov dword [ebp - 0x4b4], eax
push 0x10039e4c
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
mov dword [ebp - 0x4a0], eax
cmp dword [ebp - 0x4a0], 0
jne 0x10013de0
xor eax, eax
jmp 0x100141f8
push 0x100
push 0
lea ecx, [ebp - 0x49c]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x5b8], 0
jmp 0x10013e11
mov edx, dword [ebp - 0x5b8]
add edx, 1
mov dword [ebp - 0x5b8], edx
cmp dword [ebp - 0x5b8], 0x64
jl 0x10013e32
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 4
test eax, eax
jne 0x10013edb
mov ecx, dword [ebp - 0x4a0]
push ecx
push 0x400
lea edx, [ebp - 0x49c]
push edx
call dword [sym.imp.MSVCR80.dll_fgets]
add esp, 0xc
mov dword [ebp - 0x5bc], 0
jmp 0x10013e69
mov eax, dword [ebp - 0x5bc]
add eax, 1
mov dword [ebp - 0x5bc], eax
lea ecx, [ebp - 0x49c]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
cmp dword [ebp - 0x5bc], eax
jae 0x10013eb5
mov edx, dword [ebp - 0x4b4]
push edx
push 0x10039e50
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp + eax - 0x49c]
push ecx
call dword [sym.imp.ntdll.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10013eb3
mov dword [ebp - 0x4ac], 1
jmp 0x10013eb5
jmp 0x10013e5a
cmp dword [ebp - 0x4ac], 0
je 0x10013ec0
jmp 0x10013edb
push 0x100
push 0
lea edx, [ebp - 0x49c]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
jmp 0x10013e02
cmp dword [ebp - 0x4ac], 0
jne 0x10013efb
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x100141f8
mov byte [ebp - 0x5b4], 0
push 0xff
push 0
lea ecx, [ebp - 0x5b3]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x5b4]
mov dword [ebp - 0x4a8], edx
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
movsx edx, byte [ecx]
cmp edx, 0x3d
je 0x10013f6e
mov eax, dword [ebp - 0x4a8]
mov ecx, dword [ebp - 0x4b0]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x4a8]
add eax, 1
mov dword [ebp - 0x4a8], eax
mov ecx, dword [ebp - 0x4b0]
add ecx, 1
mov dword [ebp - 0x4b0], ecx
jmp 0x10013f30
mov edx, dword [ebp - 0x4a8]
mov byte [edx], 0
mov eax, dword [ebp - 0x4a8]
add eax, 1
mov dword [ebp - 0x4a8], eax
push 0x800
call fcn.1000f6bd
add esp, 4
mov dword [ebp - 0x604], eax
mov ecx, dword [ebp - 0x604]
mov dword [ebp - 0x398], ecx
push 0x800
push 0
mov edx, dword [ebp - 0x398]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x100
push 0
lea eax, [ebp - 0x49c]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0
push 0
mov ecx, dword [ebp - 0x4a0]
push ecx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x4a0]
push edx
push 0x100
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.MSVCR80.dll_fgets]
add esp, 0xc
test eax, eax
je 0x100140fe
push 0x10039e60
call sub.ntdll.dll_strlen
add esp, 4
push eax
push str._boot_loader_
lea ecx, [ebp - 0x49c]
push ecx
call dword [sym.imp.ntdll.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1001403a
mov dword [ebp - 0x4a4], 1
push 0x10039e80
call sub.ntdll.dll_strlen
add esp, 4
push eax
push 0x10039e94
lea edx, [ebp - 0x49c]
push edx
call dword [sym.imp.ntdll.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1001406b
mov dword [ebp - 0x4a4], 0
cmp dword [ebp - 0x4a4], 0
je 0x100140cd
push 0x10039ea8
call sub.ntdll.dll_strlen
add esp, 4
push eax
push 0x10039eb0
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.ntdll.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x100140cd
push 0x100
push 0
lea ecx, [ebp - 0x49c]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x5b4]
push edx
push str.default_s_n
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x49c]
push ecx
mov edx, dword [ebp - 0x398]
push edx
call sub.ntdll.dll_strcat
add esp, 8
push 0x100
push 0
lea eax, [ebp - 0x49c]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
jmp 0x10013fe5
mov ecx, dword [ebp - 0x4a0]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push 0x10039ec4
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
mov dword [ebp - 0x4a0], eax
cmp dword [ebp - 0x4a0], 0
jne 0x10014151
mov eax, dword [ebp - 0x398]
mov dword [ebp - 0x608], eax
mov ecx, dword [ebp - 0x608]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
jmp 0x100141f8
mov edx, dword [ebp - 0x398]
push edx
call sub.ntdll.dll_strlen
add esp, 4
mov dword [ebp - 0x39c], eax
mov eax, dword [ebp - 0x4a0]
push eax
mov ecx, dword [ebp - 0x39c]
push ecx
push 1
mov edx, dword [ebp - 0x398]
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp - 0x39c]
je 0x100141c8
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x648], eax
push 0x350
push 0x10039ec8
call fcn.10010f00
add esp, 8
push eax
push str._s:_Warning...
mov eax, dword [ebp - 0x648]
push eax
mov ecx, dword [ebp - 0x648]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
mov ecx, dword [ebp - 0x398]
mov dword [ebp - 0x60c], ecx
mov edx, dword [ebp - 0x60c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret 8