Function at 0x1000f640
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x110
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push 0x10021944
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
call fcn.10005cf0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [esp + 0x20]
push 0x10021940
push eax
call ebx
add esp, 0xc
push 0x10021938
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.10005cf0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.1000dbf0
mov ecx, dword [eax]
add esp, 0xc
push ecx
lea ecx, [esp + 0x18]
call fcn.10005cf0
mov edx, dword [esp + 0x10]
push edx
call fcn.10002e75
mov eax, dword [esp + 0x10]
push eax
call fcn.10002e75
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.10005cf0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.1000dbf0
mov edx, dword [eax]
add esp, 0xc
push edx
lea ecx, [esp + 0x18]
call fcn.10005cf0
mov eax, dword [esp + 0x10]
push eax
call fcn.10002e75
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10002e75
add esp, 8
push 0x10021934
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.10005cf0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.1000dbf0
mov edx, dword [eax]
add esp, 0xc
push edx
lea ecx, [esp + 0x18]
call fcn.10005cf0
mov eax, dword [esp + 0x10]
push eax
call fcn.10002e75
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10002e75
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x20]
push 0x1002192c
push edx
call ebx
add esp, 0xc
push 0x10021928
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.10005cf0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.1000dbf0
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.10005cf0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10002e75
mov edx, dword [esp + 0x10]
push edx
call fcn.10002e75
add esp, 8
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.10005cf0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.1000dbf0
mov ecx, dword [eax]
add esp, 0xc
push ecx
lea ecx, [esp + 0x18]
call fcn.10005cf0
mov edx, dword [esp + 0x10]
push edx
call fcn.10002e75
mov eax, dword [esp + 0x10]
push eax
call fcn.10002e75
add esp, 8
push 0x10021934
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.10005cf0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.1000dbf0
mov ecx, dword [eax]
add esp, 0xc
push ecx
lea ecx, [esp + 0x18]
call fcn.10005cf0
mov edx, dword [esp + 0x10]
push edx
call fcn.10002e75
mov eax, dword [esp + 0x10]
push eax
call fcn.10002e75
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.1000dbf0
mov eax, dword [eax]
add esp, 0x14
push eax
mov ecx, esi
call fcn.10005cf0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10002e75
mov edx, dword [esi]
push edx
call dword [0x1005c464]
add esp, 8
cmp dword [0x1005c4b4], edi
je 0x1000f901
push 0x10020c58
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.10005cf0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.1000dbf0
mov edx, dword [eax]
add esp, 0xc
push edx
mov ecx, esi
call fcn.10005cf0
mov eax, dword [esp + 0x10]
push eax
call fcn.10002e75
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10002e75
mov ebx, dword [esi]
add esp, 8
push edi
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [0x1005c4b4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [0x1005c4b4]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [esp + 0x14]
push edx
call fcn.10002e75
mov eax, dword [esi]
push eax
call fcn.10002e75
add esp, 8
mov dword [esi], edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret