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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x55c
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov ecx, 0xe
mov esi, 0x1009a40
lea edi, [ebp - 0x154]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x558], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x556]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x108], dx
push 0xfe
push 0
lea eax, [ebp - 0x106]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x55c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
push 0x1009a00
call fcn.010429b0
add esp, 4
push 0x104debc
push 0x200
lea ecx, [ebp - 0x558]
push ecx
call fcn.01010390
push 0x10099e4
push 0x200
lea edx, [ebp - 0x558]
push edx
call fcn.01010ee0
push 0x104c7ec
call dword [0x104ef44]
test eax, eax
jne 0x103e2e5
cmp dword [0x104e7a8], 0
je 0x103e2da
cmp dword [0x104e0cc], 0
je 0x103e2da
lea eax, [ebp - 0x154]
push eax
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 0x103e30c
cmp dword [0x104e0cc], 0
je 0x103e30c
lea ecx, [ebp - 0x154]
push ecx
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov edx, dword [0x104c954]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x103e35f
lea eax, [ebp - 0x558]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103e35a
cmp dword [0x104e0cc], 0
je 0x103e35a
lea ecx, [ebp - 0x154]
push ecx
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
jmp 0x103e534
push 0
push 0x100080
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x558]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x103e502
push 0x100
lea eax, [ebp - 0x108]
push eax
push 0x10015d4
push 0x1001960
push 0x1001598
call fcn.01042360
add esp, 0x14
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.MSVCR80.dll__wtol]
add esp, 4
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
cdq
mov ecx, 0x186a0
idiv ecx
mov ecx, eax
imul ecx, ecx, 0xf4240
mov eax, dword [ebp - 0x110]
cdq
mov esi, 0x186a0
idiv esi
mov eax, edx
cdq
mov esi, 0x3e8
idiv esi
imul eax, eax, 0x2710
add ecx, eax
mov eax, dword [ebp - 0x110]
cdq
mov esi, 0x3e8
idiv esi
add ecx, edx
mov dword [ebp - 0x110], ecx
push 0
lea edx, [ebp - 0x55c]
push edx
push 4
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x55c]
push edx
push 4
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x114], 0
jmp 0x103e46c
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 4]
jge 0x103e4f5
mov ecx, dword [ebp - 0x114]
push ecx
push 0x104c94c
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x103e4f0
push 0
lea edx, [ebp - 0x55c]
push edx
push 0x28
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x10c]
cmp dword [edx + 0x24], 0
je 0x103e4f0
push 0
lea eax, [ebp - 0x55c]
push eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x103e45d
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104c7ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x103e534
cmp dword [0x104e0cc], 0
je 0x103e534
lea ecx, [ebp - 0x154]
push ecx
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret