Function at 0x10018c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001cc50
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x100556d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x99
call fcn.1001b666
add esp, 4
mov dword [ebp - 0x264], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x264], 0
je 0x10018c73
mov ecx, dword [ebp - 0x264]
call fcn.10015990
mov dword [ebp - 0x268], eax
jmp 0x10018c7d
mov dword [ebp - 0x268], 0
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x274], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x258]
call fcn.10014ee0
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x258]
call fcn.10015d20
add eax, 8
mov ecx, eax
call fcn.10015c40
lea ecx, [ebp - 0x258]
call fcn.10015d20
mov dword [eax + 4], 0
lea ecx, [ebp - 0x258]
call fcn.10015d20
mov dword [eax + 0x4c], 0
lea ecx, [ebp - 0x258]
call fcn.10015d20
mov dword [eax + 0x50], 0
lea ecx, [ebp - 0x258]
call fcn.10015d20
mov dword [eax + 0x48], 0
lea ecx, [ebp - 0x258]
call fcn.10015d20
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
lea ecx, [ebp - 0x258]
call fcn.10015d20
mov dword [eax + 0x78], 0
lea ecx, [ebp - 0x258]
call fcn.10015d20
mov dword [eax + 0x7c], 0
lea ecx, [ebp - 0x258]
call fcn.10015d20
mov byte [eax + 0x98], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.10013440
add esp, 8
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x26c], eax
cmp dword [ebp + 0x10], 0
je 0x10018def
cmp dword [ebp - 0x26c], 0xffffffff
je 0x10018def
mov esi, dword [ebp - 0x234]
xor edi, edi
lea ecx, [ebp - 0x258]
call fcn.10015d20
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], edi
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x258]
call fcn.10015d20
add eax, 0x28
push eax
call fcn.10015f20
lea edx, [ebp - 0x240]
push edx
lea ecx, [ebp - 0x258]
call fcn.10015d20
add eax, 0x38
push eax
call fcn.10015f20
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10018e25
push 0x10
push 0
lea ecx, [ebp - 0x258]
call fcn.10015d20
add eax, 0x28
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x258]
call fcn.10015d20
add eax, 0x38
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x27c]
push edx
call fcn.10017350
add esp, 8
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x278]
push eax
lea ecx, [ebp - 0x25c]
call fcn.10014e50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x27c]
call fcn.10015b70
lea ecx, [ebp - 0x25c]
call fcn.10015d20
cmp dword [eax + 4], 0xc8
jne 0x10019012
lea ecx, [ebp - 0x25c]
call fcn.10015d20
add eax, 0x24
mov ecx, eax
call fcn.10015d20
cmp dword [eax + 0x7c], 2
jne 0x10018fdd
lea ecx, [ebp - 0x25c]
call fcn.10015d20
add eax, 0x24
mov ecx, eax
call fcn.10015d20
mov ecx, dword [eax + 0x78]
mov dword [ebp - 0x270], ecx
cmp dword [ebp - 0x270], 0
je 0x10018fdd
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0xffffffff
je 0x10018fdd
lea ecx, [ebp - 0x25c]
call fcn.10015d20
add eax, 0x24
mov ecx, eax
call fcn.10015d20
add eax, 0x6c
mov ecx, eax
call fcn.10018ae0
mov dword [ebp - 0x280], eax
push 0
lea eax, [ebp - 0x28c]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
mov edx, dword [ebp - 0x280]
push edx
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.10015d20
add eax, 0x24
mov ecx, eax
call fcn.10015d20
add eax, 0x28
push eax
call fcn.10015fa0
lea edx, [ebp - 0x294]
push edx
lea ecx, [ebp - 0x25c]
call fcn.10015d20
add eax, 0x24
mov ecx, eax
call fcn.10015d20
add eax, 0x38
push eax
call fcn.10015fa0
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.10015d20
add eax, 0x24
mov ecx, eax
call fcn.10015d20
add eax, 0x38
push eax
call fcn.10015fa0
lea ecx, [ebp - 0x294]
push ecx
lea edx, [ebp - 0x29c]
push edx
lea eax, [ebp - 0x2a4]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [ebp - 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x284], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.10015b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.10015b70
mov eax, dword [ebp - 0x284]
jmp 0x10019066
mov dword [ebp - 0x288], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.10015b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.10015b70
mov eax, dword [ebp - 0x288]
jmp 0x10019066
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001b893
mov esp, ebp
pop ebp
ret