Function at 0x50a730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519a19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x10], 4
jae 0x50a7cd
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.004f0050
mov byte [ebp - 4], 1
push str._is_empty
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.004139a0
add esp, 0x14
mov byte [ebp - 4], 2
push ebx
push 1
push eax
push 0x3b6
push str.Xmi2Csv::WriteAsIs
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 1
lea esi, [ebp - 0x30]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x4c]
call fcn.004150b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 0x10
jb 0x50a7d7
mov eax, dword [esi]
jmp 0x50a7d9
mov eax, esi
push 0x5345e0
push eax
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, ebx
je 0x50a892
cmp eax, ebx
jg 0x50a892
mov ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], 0x10
jb 0x50a80c
mov eax, dword [edi]
jmp 0x50a80e
mov eax, edi
push edx
push 1
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
mov dword [ebp - 0x14], ebx
push esi
lea ecx, [ebp - 0x4c]
push ecx
call fcn.004f0050
mov byte [ebp - 4], 0xa
push str._written
push eax
lea edx, [ebp - 0x30]
push edx
call fcn.004139a0
add esp, 0x14
mov byte [ebp - 4], 0xb
push ebx
push 1
push eax
push 0x3c5
push str.Xmi2Csv::WriteAsIs
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0x30]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x4c]
call fcn.004150b0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x528928
lea ecx, [ebp - 0xdc]
call fcn.0040fae0
mov byte [ebp - 4], 3
mov eax, 0x528928
lea ecx, [ebp - 0x6c]
call fcn.0040fae0
mov byte [ebp - 4], 4
mov eax, 0x528928
lea ecx, [ebp - 0xc0]
call fcn.0040fae0
mov byte [ebp - 4], 5
mov eax, 0x528928
lea ecx, [ebp - 0x88]
call fcn.0040fae0
mov byte [ebp - 4], 6
mov eax, str.Failed_to_write_to
lea ecx, [ebp - 0xa4]
call fcn.0040fae0
mov byte [ebp - 4], 7
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.004f0050
mov esi, eax
mov byte [ebp - 4], 8
push str.Xmi2Csv::WriteAsIs
lea ecx, [ebp - 0x30]
push ecx
mov ecx, 0x3be
call fcn.00451470
mov byte [ebp - 4], 9
lea edx, [ebp - 0xdc]
push edx
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0x88]
push ecx
push eax
mov edx, esi
lea ecx, [ebp - 0xa4]
call fcn.0044f9c0
add esp, 0x24
mov byte [ebp - 4], 8
lea esi, [ebp - 0x30]
call fcn.004150b0
mov byte [ebp - 4], 7
lea esi, [ebp - 0x4c]
call fcn.004150b0
mov byte [ebp - 4], 6
lea esi, [ebp - 0xa4]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0x88]
call fcn.004150b0
mov byte [ebp - 4], 4
lea esi, [ebp - 0xc0]
call fcn.004150b0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x6c]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0xdc]
call fcn.004150b0
mov eax, 0xfffffe6c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4