Function at 0x100132a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034096
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x10048024]
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 0x10013d41
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 0x100141a8
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4ac], 0
push 0x10037d1c
call sub.ntdll.dll_strlen
add esp, 4
mov dword [ebp - 0x4b4], eax
push 0x10037d2c
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 0x10013d90
xor eax, eax
jmp 0x100141a8
push pe_nt_image_headers32
push 0
lea ecx, [ebp - 0x49c]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x5b8], 0
jmp 0x10013dc1
mov edx, dword [ebp - 0x5b8]
add edx, 1
mov dword [ebp - 0x5b8], edx
cmp dword [ebp - 0x5b8], 0x64
jl 0x10013de2
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 4
test eax, eax
jne 0x10013e8b
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 0x10013e19
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 0x10013e65
mov edx, dword [ebp - 0x4b4]
push edx
push 0x10037d30
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 0x10013e63
mov dword [ebp - 0x4ac], 1
jmp 0x10013e65
jmp 0x10013e0a
cmp dword [ebp - 0x4ac], 0
je 0x10013e70
jmp 0x10013e8b
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x49c]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
jmp 0x10013db2
cmp dword [ebp - 0x4ac], 0
jne 0x10013eab
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x100141a8
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 0x10013f1e
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 0x10013ee0
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.1000f66d
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 pe_nt_image_headers32
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 pe_nt_image_headers32
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.MSVCR80.dll_fgets]
add esp, 0xc
test eax, eax
je 0x100140ae
push 0x10037d40
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 0x10013fea
mov dword [ebp - 0x4a4], 1
push 0x10037d60
call sub.ntdll.dll_strlen
add esp, 4
push eax
push 0x10037d74
lea edx, [ebp - 0x49c]
push edx
call dword [sym.imp.ntdll.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1001401b
mov dword [ebp - 0x4a4], 0
cmp dword [ebp - 0x4a4], 0
je 0x1001407d
push 0x10037d88
call sub.ntdll.dll_strlen
add esp, 4
push eax
push 0x10037d90
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.ntdll.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1001407d
push pe_nt_image_headers32
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 pe_nt_image_headers32
push 0
lea eax, [ebp - 0x49c]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
jmp 0x10013f95
mov ecx, dword [ebp - 0x4a0]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push 0x10037da4
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 0x10014101
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 0x100141a8
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 0x10014178
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x648], eax
push 0x350
push 0x10037da8
call fcn.10010eb0
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.1000f672
mov esp, ebp
pop ebp
ret 8