Function at 0x103e550
Capabilities:
Delete file
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
mov ecx, 0xa
mov esi, 0x1008f7c
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x478], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x476]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x47c], 0
push 0x1009a7c
call fcn.010429b0
add esp, 4
push 0x104debc
push 0x200
lea edx, [ebp - 0x478]
push edx
call fcn.01010390
push 0x10099e4
push 0x200
lea eax, [ebp - 0x478]
push eax
call fcn.01010ee0
push 0
push 0x100080
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x103e65d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x478]
push edx
push 0x1a3
push 0
push 1
call fcn.01028fb0
add esp, 0x14
xor eax, eax
jmp 0x103e984
push 0
lea eax, [ebp - 0x48]
push eax
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x103e6a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x478]
push eax
push 0x1a3
push 0
push 1
call fcn.01028fb0
add esp, 0x14
jmp 0x103e93a
cmp dword [ebp - 0x10], 0x6acfc0
jge 0x103e6c8
mov ecx, dword [ebp - 0x10]
push ecx
push 0xea
push 0
push 1
call fcn.01028fb0
add esp, 0x10
jmp 0x103e93a
push 0
lea edx, [ebp - 0x48]
push edx
push 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x103e70b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x478]
push edx
push 0x1a3
push 0
push 1
call fcn.01028fb0
add esp, 0x14
jmp 0x103e93a
cmp dword [ebp - 8], 0
je 0x103e93a
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.MSVCR80.dll__wcslwr]
add esp, 4
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x71
push 0
push 2
call fcn.01028fb0
add esp, 0x14
push 0x104c7ec
call dword [0x104ef44]
test eax, eax
jne 0x103e776
cmp dword [0x104e7a8], 0
je 0x103e76b
cmp dword [0x104e0cc], 0
je 0x103e76b
lea edx, [ebp - 0x74]
push edx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103e79a
cmp dword [0x104e0cc], 0
je 0x103e79a
lea eax, [ebp - 0x74]
push eax
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov dword [ebp - 0x14], 0
jmp 0x103e7ac
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
jge 0x103e90b
push 0
lea eax, [ebp - 0x48]
push eax
push 0x28
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x103e82a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x478]
push eax
push 0x1a3
push 0
push 1
call fcn.01028fb0
add esp, 0x14
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103e820
cmp dword [0x104e0cc], 0
je 0x103e820
lea ecx, [ebp - 0x74]
push ecx
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
jmp 0x103e93a
cmp dword [ebp - 0x48], 0x28
jne 0x103e906
push 0x395
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.01011700
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x103e906
push 0
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x103e8a8
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x24]
jne 0x103e8a8
push fcn.010394c0
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0x104c94c
call dword [sym.imp.SQLSVC90.dll_SHRecMemBSInsert]
add esp, 0x18
mov ecx, dword [ebp - 0x47c]
add ecx, 1
mov dword [ebp - 0x47c], ecx
jmp 0x103e906
mov edx, dword [ebp - 0x20]
push edx
call fcn.01011d50
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x478]
push eax
push 0x1a3
push 0
push 1
call fcn.01028fb0
add esp, 0x14
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103e902
cmp dword [0x104e0cc], 0
je 0x103e902
lea ecx, [ebp - 0x74]
push ecx
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
jmp 0x103e93a
jmp 0x103e7a3
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103e93a
cmp dword [0x104e0cc], 0
je 0x103e93a
lea edx, [ebp - 0x74]
push edx
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [ebp - 0x18], 0xffffffff
je 0x103e957
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x47c]
je 0x103e97e
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x47c]
push ecx
push 0x133
push 0
push 2
call fcn.01028fb0
add esp, 0x14
mov eax, dword [ebp - 0x47c]
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret