Function at 0x1014b87
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xc54
mov eax, 0x102f6d3
call fcn.01026060
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc44], eax
lea eax, [ebp - 0xc10]
push eax
push 0x10031f4
mov esi, ecx
call fcn.0101cb19
test al, al
pop ecx
pop ecx
je 0x1015091
lea eax, [ebp - 0xc10]
push eax
lea ecx, [ebp - 0xc38]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xc1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc20]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 4
lea eax, [ebp - 0xc18]
push eax
lea edi, [esi + 0x84]
push 0x10031e0
mov ecx, edi
call fcn.01010ae8
test eax, eax
lea ecx, [ebp - 0xc1c]
je 0x1014c4f
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
jmp 0x1014c5a
push 0x10031cc
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea eax, [ebp - 0xc18]
push eax
push 0x10031b8
mov ecx, edi
call fcn.01010ae8
test eax, eax
lea ecx, [ebp - 0xc20]
je 0x1014c86
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
jmp 0x1014c91
push 0x100318c
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea eax, [ebp - 0xc18]
push eax
push 0x100316c
mov ecx, edi
call fcn.01010ae8
test eax, eax
lea ecx, [ebp - 0xc2c]
je 0x1014cbd
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
jmp 0x1014cc8
push 0x1003150
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [ebp - 0xc24]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 5
mov edi, dword [sym.imp.MFC80U.DLL_Ordinal_2311]
push 0x10016c4
push dword [esi + 0x34]
lea eax, [ebp - 0xc24]
push dword [ebp - 0xc28]
push dword [ebp - 0xc2c]
push dword [ebp - 0xc20]
push dword [ebp - 0xc1c]
push 0x1003100
push eax
call edi
lea eax, [esi + 0x40]
push 0x10016a8
push eax
lea eax, [ebp - 0xc4c]
push eax
call fcn.01007c8d
mov byte [ebp - 4], 6
push str.SQLDIAG
push eax
lea eax, [ebp - 0xc28]
push eax
call fcn.01007c8d
mov byte [ebp - 4], 7
push 0x10030f4
push eax
lea eax, [ebp - 0xc30]
push eax
call fcn.01007c8d
add esp, 0x44
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc4c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
or dword [ebp - 0xc34], 0xffffffff
mov byte [ebp - 4], 0xb
push ebx
push 0x100080
push 2
push ebx
push 1
push 0x40000000
lea ecx, [ebp - 0xc30]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0xc34]
mov dword [ebp - 0xc28], eax
call fcn.01010702
mov eax, dword [ebp - 0xc28]
cmp eax, 0xffffffff
mov dword [ebp - 0xc34], eax
jne 0x1014e58
mov eax, dword [esi]
push 1
push 1
push ebx
push ebx
push 0xc000c39d
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc34]
call fcn.01010702
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xc30]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc24]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xc1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc38]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x10150a4
push 0x400
lea eax, [ebp - 0xc10]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc48]
push eax
push ebx
push 0x400
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0xc24]
mov dword [ebp - 0xc48], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
push eax
lea ecx, [ebp - 0xc24]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
je 0x1014dc4
lea ecx, [eax - 1]
cmp ecx, 0x400
jae 0x1014ec5
mov byte [ebp + eax - 0x410], bl
jmp 0x1014ec8
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x410]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1014ed1
sub eax, ecx
push ebx
lea ecx, [ebp - 0xc50]
push ecx
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0xc28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
push 1
push 1
push ebx
push ebx
push 0x4000c39e
mov ecx, esi
call dword [eax]
push 0x10030b4
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0xc40]
push eax
call fcn.01007c8d
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xc3c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 0xd
push dword [ebp - 0xc40]
lea eax, [ebp - 0xc3c]
push dword [ebp - 0xc44]
push dword [ebp - 0xc30]
push dword [ebp - 0xc38]
push 0x10030c8
push eax
call edi
add esp, 0x18
push 0xffffffffffffffff
push 0x20
lea eax, [ebp - 0xc60]
push eax
xor edi, edi
inc edi
push edi
push edi
lea ecx, [esi + 0x40]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [ebp - 0xc3c]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [esi + 0x44]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [esi + 0xbc]
push eax
call fcn.0102030c
add esp, 0x24
test eax, eax
jne 0x1014fd6
mov ecx, esi
call fcn.010149b3
test al, al
je 0x1014fd6
mov eax, dword [esi]
push edi
push edi
push ebx
push ebx
push 0xc3a0
mov ecx, esi
call dword [eax]
lea ecx, [ebp - 0xc40]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0xc11], 1
jmp 0x1014feb
mov eax, dword [esi]
push edi
push edi
push ebx
push ebx
push 0xc000c39f
mov ecx, esi
call dword [eax]
mov byte [ebp - 0xc11], bl
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xc3c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xc40]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc34]
call fcn.01010702
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xc30]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc24]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xc1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc38]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, byte [ebp - 0xc11]
jmp 0x10150a6
mov eax, dword [esi]
push 1
push 1
xor ebx, ebx
push ebx
push ebx
push 0xc000c3a1
mov ecx, esi
call dword [eax]
xor al, al
call fcn.010260f2
ret 8