Function at 0x10003570
Capabilities:
Delete file
Get file size
Move file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push ebx
mov ebx, dword [0x100238d0]
push ebp
push esi
push edi
push 0x104
mov edi, ecx
lea ecx, [esp + 0x1d]
push 0
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
test edi, edi
je 0x1000362a
cmp byte [edi], 0
je 0x1000362a
push 0x5c
push edi
call dword [sym.imp.MSVCR90.dll__mbschr]
add esp, 8
test eax, eax
jne 0x10003676
push 0x105
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x18]
push 0x5c
push eax
call dword [sym.imp.MSVCR90.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x100035fa
mov byte [eax + 1], 0
mov ecx, 0x105
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x10003610
inc eax
sub ecx, 1
jne 0x10003603
jmp 0x10003672
test ecx, ecx
je 0x10003672
mov eax, 0x105
sub eax, ecx
mov ecx, 0x105
sub ecx, eax
lea edx, [esp + eax + 0x18]
mov eax, edi
jmp 0x1000366d
push 0x105
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x105
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x10003652
inc eax
sub ecx, 1
jne 0x10003645
jmp 0x10003672
test ecx, ecx
je 0x10003672
mov eax, 0x105
sub eax, ecx
mov ecx, 0x105
sub ecx, eax
lea edx, [esp + eax + 0x18]
mov eax, str..log
call fcn.100034e0
lea edi, [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x100037cc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
shl ebx, 0xa
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jbe 0x1000378c
cmp eax, 0xffffffff
je 0x1000378c
push esi
call ebx
push 0x104
lea edx, [esp + 0x125]
push 0
push edx
mov byte [esp + 0x12c], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x105
push edi
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x120]
push 0x2e
push ecx
call dword [sym.imp.MSVCR90.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x1000370c
mov byte [eax], 0
mov ecx, 0x105
lea eax, [esp + 0x120]
cmp byte [eax], 0
je 0x10003725
inc eax
sub ecx, 1
jne 0x10003718
jmp 0x10003748
test ecx, ecx
je 0x10003748
mov eax, 0x105
sub eax, ecx
mov ecx, 0x105
sub ecx, eax
lea edx, [esp + eax + 0x120]
mov eax, str.2.log
call fcn.100034e0
push 0x80
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x120]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push edi
call ebp
mov esi, eax
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x14]
mov eax, edi
mov dword [esp + 0x10], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100037b0
push 0
sub eax, edx
lea edx, [esp + 0x14]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100192c6
add esp, 0x21c
ret