Function at 0x10014d40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x544
push ebx
push ebp
push esi
mov ebx, 0x1000
push edi
mov esi, 0x400
push ebx
mov dword [esp + 0x18], esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, dword [esp + 0x55c]
mov edi, eax
mov ecx, esi
xor eax, eax
mov dword [esp + 0x14], edi
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x210]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
jle 0x10014ee8
mov dword [esp + 0x1c], edi
mov eax, dword [ebp + 0x20c]
add eax, edi
cmp dword [eax + 0x20c], 2
je 0x10014ec7
add eax, 0x214
push eax
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov edx, dword [ebp + 0x20c]
lea ecx, [esp + 0x30]
push ecx
lea eax, [edi + edx + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [ebp + 0x20c]
mov edx, dword [edi + ecx + 0x20c]
lea eax, [edi + ecx]
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [eax + 0x210]
push edx
mov edx, dword [esp + 0x42]
push eax
mov eax, dword [esp + 0x44]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x46]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x46]
push eax
mov eax, dword [esp + 0x48]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x178]
push str._04d_02d_02d_02d_02d_02d_t_u_t_d_t_s_r_n
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [eax + esi]
add esp, 0x2c
cmp edx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
jl 0x10014e9c
lea eax, [ebx + 0x1000]
push eax
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, dword [esp + 0x14]
mov ecx, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.10010220
mov edx, dword [esp + 0x30]
add esp, 8
mov ecx, 0x400
xor eax, eax
lea edi, [edx + ebx]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x154]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x14], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
mov esi, edx
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x210]
inc eax
add edi, 0x224
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
jl 0x10014d8c
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x560]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
lea eax, [esp + 0x158]
push str.monitorvalue:__s_r_n
push eax
call edi
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x56]
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 0x48]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x4a]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x4a]
push eax
mov eax, dword [esp + 0x4c]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + ebx + 0x16c]
push str.time:__04d_02d_02d_02d_02d_02d_r_n
push ecx
call edi
add esp, 0x20
add ebx, eax
add esi, 0xfffffc00
push esi
lea edx, [esp + ebx + 0x158]
push str.content_length:__d_r_n
push edx
call edi
add esp, 0xc
add ebx, eax
mov eax, dword [esp + 0x55c]
push eax
lea ecx, [esp + ebx + 0x158]
push str.monitortype:__s_r_n
push ecx
call edi
add esp, 0xc
add ebx, eax
push str.filelist
lea edx, [esp + ebx + 0x158]
push str.content_type:__s_r_n_r_n
push edx
call edi
add ebx, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x160]
lea ebp, [eax + 0x400]
xor eax, eax
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x56c]
lea eax, [esp + 0x5c]
push eax
push ecx
call fcn.10015050
push 0x10030a68
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x10015033
mov eax, dword [esp + 0x14]
push esi
lea ecx, [ebx + eax - 0x400]
push ecx
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov edx, dword [esp + 0x10]
push edx
call fcn.10010220
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x544
ret