Function at 0x10007650
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0x1000
xor ebx, ebx
push ebx
push dword [0x1003e140]
mov dword [ebp - 0xc], 8
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100078d7
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x100078be
push 0x5c
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
cmp eax, ebx
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
je 0x100076ed
push dword [ebp + 0x10]
mov byte [eax], bl
push 0x1003fcbb
push dword [ebp - 8]
call esi
add esp, 0xc
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov byte [eax], 0x5c
jmp 0x100076f3
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x1003fcea
push dword [ebp - 8]
call esi
add esp, 0xc
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
push dword [ebp + 0xc]
jne 0x10007756
push 0x1003fd1e
push dword [ebp - 8]
call esi
add esp, 0xc
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call edi
test eax, eax
je 0x10007748
mov dword [ebp - 0xc], ebx
jmp 0x100078b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x100078b3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 0x10], eax
lea eax, [eax + eax + 4]
push eax
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x100078b3
mov ecx, dword [ebp + 0x10]
inc ecx
push ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ntdll.dll_mbstowcs]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
add esp, 0xc
push ebx
lea eax, [ecx + eax*2]
push ebx
mov word [eax], 0x5c
mov word [eax + 2], bx
lea eax, [ebp - 0x20]
push ebx
push eax
push 0x1003f8bc
push ecx
mov dword [ebp - 0xc], 0x12
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
call fcn.10010c47
test eax, eax
je 0x100078a3
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
cmp eax, ecx
je 0x100078a3
jmp 0x100077da
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp + 0x10], eax
add eax, 0x1c
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1000787c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x18]
push 0x5c
lea eax, [eax + ecx*2 + 0x1c]
push ebx
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1000782c
push dword [ebp + 0xc]
mov word [eax], bx
push 0x1003fd03
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0xc]
mov word [ecx], 0x5c
jmp 0x1000783b
push 0x100384e0
push 0x1003fd03
push dword [ebp - 8]
call esi
add esp, 0xc
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call edi
push dword [ebp + 0xc]
push str.__S__r_n
push dword [ebp - 8]
call esi
add esp, 0xc
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call edi
test eax, eax
je 0x10007873
mov dword [ebp - 0xc], ebx
jmp 0x1000787c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push edx
push ebx
push dword [0x1003e140]
mov dword [ecx], eax
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x20]
cmp dword [ebp - 0x10], eax
jne 0x100077d7
push dword [ebp - 0x18]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100078c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push ebx
push dword [0x1003e140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc