Function at 0x4e8dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dfc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push esi
push edi
lea edi, [ebp - 0xf0]
mov ecx, 0x39
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x55370c]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x11], 1
mov esi, esp
push 0x5277f0
lea ecx, [ebp + 8]
call fcn.0040d680
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4e8ea1
cmp dword [ebp + 0x10], 0
je 0x4e8e9a
lea eax, [ebp - 0xc4]
push eax
call fcn.004eb7d0
add esp, 4
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 4], 0
mov esi, esp
mov edx, dword [ebp - 0xdc]
push edx
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
xor al, al
jmp 0x4e9165
cmp dword [ebp + 0x14], 0
je 0x4e8eb4
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0xe0], ecx
jmp 0x4e8ebe
mov dword [ebp - 0xe0], 0
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov esi, esp
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x4e908b
mov esi, esp
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0xc8], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040d440
lea eax, [ebp - 0xbc]
push eax
call fcn.004ea5d0
add esp, 8
mov byte [ebp - 4], 2
mov esi, esp
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
cmp esi, esp
call fcn.004f90e1
movzx ecx, al
test ecx, ecx
jne 0x4e8f8f
push 5
push str.UTF_8
mov esi, esp
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
cmp esi, esp
call fcn.004f90e1
push eax
call fcn.004f1960
add esp, 0xc
test eax, eax
jne 0x4e8ffb
push ecx
mov ecx, esp
mov dword [ebp - 0xcc], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040d440
lea eax, [ebp - 0xd0]
push eax
call fcn.004ea390
add esp, 8
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], ecx
mov byte [ebp - 4], 3
mov esi, esp
mov edx, dword [ebp - 0xe8]
push edx
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
cmp esi, esp
call fcn.004f90e1
mov byte [ebp - 4], 2
mov esi, esp
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 0xa8], eax
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
push 1
mov ecx, dword [ebp - 0xa8]
push ecx
mov edi, esp
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
cmp edi, esp
call fcn.004f90e1
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.004f90e1
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 1
mov esi, esp
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
mov edx, dword [ebp - 0xa8]
push edx
lea eax, [ebp - 0x34]
push eax
push str._s_d_bytes
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x10
cmp esi, esp
call fcn.004f90e1
cmp dword [ebp + 0x10], 0
je 0x4e90d3
mov esi, esp
lea edx, [ebp - 0xa0]
push edx
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
cmp esi, esp
call fcn.004f90e1
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x4e913e
cmp dword [ebp + 0x10], 0
je 0x4e913e
lea ecx, [ebp - 0xd4]
push ecx
call fcn.004eb7d0
add esp, 4
mov dword [ebp - 0xec], eax
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], edx
mov dword [ebp - 4], 4
mov esi, esp
mov eax, dword [ebp - 0xf0]
push eax
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
cmp esi, esp
call fcn.004f90e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0xd4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, esp
call fcn.004f90e1
mov esi, esp
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.004f90e1
cmp dword [ebp + 0x14], 0
je 0x4e9162
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov al, byte [ebp - 0x11]
push edx
mov ecx, ebp
push eax
lea edx, [0x4e919b]
call fcn.004f9104
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004f90d3
pop edi
pop esi
add esp, 0xf0
cmp ebp, esp
call fcn.004f90e1
mov esp, ebp
pop ebp
ret