Function at 0x1002c8f0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100737cb
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x4318
call fcn.1006a6b0
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42cc], edx
mov esi, ecx
push 0x4018
lea eax, [ebp - 0x4284]
mov dword [ebp - 0x42c8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4288], 0
push 0
push eax
movq qword [ebp - 0x42c4], xmm0
call fcn.10045770
add esp, 0xc
mov dword [ebp - 0x4328], 0
lea eax, [ebp - 0x4324]
push 0x4c
push 0
push eax
call fcn.10045770
add esp, 0xc
mov dword [ebp - 0x4290], 0
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x42ac], 0
mov dword [ebp - 0x42bc], 0xffffffff
mov dword [ebp - 0x4294], 0
push esi
mov dword [ebp - 0x42d0], 0
mov dword [ebp - 0x42a8], 0x1002feb0
mov dword [ebp - 0x42a4], 0x1002fed0
mov dword [ebp - 0x42d8], 0x1002feb0
mov dword [ebp - 0x42d4], 0x1002fed0
call fcn.1000c640
push 0
push 0
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 7
push 0
cmova eax, dword [ebp - 0x238]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jg 0x1002ca55
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
movups xmmword [ebp - 0x250], xmm0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
jmp 0x1002caed
push edi
call fcn.10044134
add esp, 4
mov esi, eax
cmp dword [ebp - 0x224], 7
lea eax, [ebp - 0x238]
cmova eax, dword [ebp - 0x238]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, esi
mov byte [esi + edi - 1], 0
xorps xmm0, xmm0
mov dword [ebp - 0x258], 0
movups xmmword [ebp - 0x268], xmm0
mov dword [ebp - 0x254], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002cab0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x268]
call fcn.1000bf00
push esi
call fcn.10043645
movups xmm0, xmmword [ebp - 0x268]
add esp, 4
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [ebp - 0x258]
movq qword [ebp - 0x240], xmm0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x1002cb31
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002cb27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cfff
push ecx
push edx
call fcn.10043c87
add esp, 8
push 0
push 0x80
push 3
xor eax, eax
mov dword [ebp - 0x228], 0
cmp dword [ebp - 0x23c], 0xf
push 0
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x250]
cmova eax, dword [ebp - 0x250]
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x224], 7
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x42c0], eax
cmp eax, 0xffffffff
je 0x1002cb90
xor esi, esi
jmp 0x1002cb94
call edi
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x23c]
cmp ecx, 0xf
jbe 0x1002cbd5
mov edx, dword [ebp - 0x250]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002cbcb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002d004
push ecx
push edx
call fcn.10043c87
add esp, 8
test esi, esi
jne 0x1002cfa8
lea eax, [ebp - 0x42c8]
mov dword [ebp - 0x42c8], 0x1002fe00
mov dword [ebp - 0x42c4], 0x1002fe20
mov dword [ebp - 0x4288], 0x1002fee0
mov dword [ebp - 0x4284], 0x1002ff40
mov dword [ebp - 0x4280], 0x1002ff50
mov dword [ebp - 0x427c], 0x1002ffa0
mov dword [ebp - 0x4278], eax
mov dword [ebp - 0x4270], esi
mov dword [ebp - 0x4274], esi
call fcn.1002ffc0
lea eax, [ebp - 0x42d8]
mov dword [ebp - 0x4318], esi
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x4314], esi
lea eax, [ebp - 0x42a8]
mov dword [ebp - 0x4310], esi
push eax
lea edx, [ebp - 0x4288]
mov dword [ebp - 0x430c], esi
lea ecx, [ebp - 0x4328]
mov dword [ebp - 0x42e8], esi
movups xmmword [ebp - 0x4328], xmm0
mov dword [ebp - 0x42e4], esi
movups xmmword [ebp - 0x42f8], xmm0
mov dword [ebp - 0x42e0], esi
call fcn.1002f660
mov esi, eax
add esp, 8
test esi, esi
je 0x1002ccaf
lea edx, [ebp - 0x42a8]
lea ecx, [ebp - 0x4328]
call fcn.1002d330
jmp 0x1002cfa8
xor edi, edi
mov dword [ebp - 0x428c], esi
mov dword [ebp - 0x429c], edi
cmp dword [ebp - 0x430c], edi
jbe 0x1002cf79
xor esi, esi
mov dword [ebp - 0x42a0], esi
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10045770
add esp, 0xc
lea eax, [ebp - 0x220]
push dword [ebp - 0x42cc]
push 0x104
push eax
call fcn.1004e82f
mov eax, dword [ebp - 0x4318]
add esp, 0xc
add eax, esi
mov dword [ebp - 0x42b4], 0
mov dword [ebp - 0x42b0], eax
mov eax, dword [ebp - 0x42e8]
mov dword [ebp - 0x4298], 0
lea esi, [eax + edi*4]
mov edi, dword [esi + 4]
sub edi, dword [esi]
cmp edi, dword [ebp - 0x42ac]
jbe 0x1002cd77
push dword [ebp - 0x4290]
call fcn.10047705
add esp, 4
mov dword [ebp - 0x42ac], edi
add edi, edi
je 0x1002cf6a
push edi
call fcn.10047720
mov edi, eax
add esp, 4
mov dword [ebp - 0x4290], edi
test edi, edi
je 0x1002cf74
mov edx, dword [esi + 4]
mov ecx, dword [esi]
sub edx, ecx
jmp 0x1002cd88
mov edx, dword [esi + 4]
mov ecx, dword [esi]
sub edx, ecx
mov edi, dword [ebp - 0x4290]
test edi, edi
je 0x1002cdb0
mov eax, dword [ebp - 0x42e4]
lea esi, [eax + ecx*2]
test edx, edx
je 0x1002cdb0
mov ecx, edi
sub esi, edi
nop dword [eax]
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x1002cda0
push edi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x42b0]
cmp byte [eax + 0x19], 0
jne 0x1002ce25
lea eax, [ebp - 0x42d8]
push eax
lea eax, [ebp - 0x42a8]
push eax
lea eax, [ebp - 0x4298]
push eax
lea eax, [ebp - 0x42b4]
push eax
lea eax, [ebp - 0x42d0]
push eax
lea eax, [ebp - 0x4294]
push eax
lea eax, [ebp - 0x42bc]
push eax
push dword [ebp - 0x429c]
lea edx, [ebp - 0x4288]
lea ecx, [ebp - 0x4328]
call fcn.1002fa90
mov esi, eax
add esp, 0x20
mov dword [ebp - 0x428c], esi
test esi, esi
jne 0x1002cf79
mov ax, word [ebp - 0x220]
xor edi, edi
test ax, ax
je 0x1002ce8f
xor ecx, ecx
movzx edx, ax
lea esi, [ebp - 0x220]
nop
movzx eax, dx
cmp eax, 0x2f
je 0x1002ce52
mov edx, 0x2f2f
cmp ax, dx
jne 0x1002ce79
cmp ecx, 0x208
jae 0x1002d009
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [esi], ax
inc edi
lea esi, [ebp - 0x220]
lea ecx, [edi + edi]
add esi, ecx
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x1002ce40
mov eax, dword [ebp - 0x42b0]
push 0
cmp byte [eax + 0x19], 0
je 0x1002ceaf
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1002cf39
mov edi, dword [ebp - 0x42b4]
xor eax, eax
add edi, dword [ebp - 0x4294]
push 0x80
push 2
push eax
push eax
mov dword [ebp - 0x428c], eax
lea eax, [ebp - 0x220]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002cef1
mov dword [ebp - 0x428c], 1
jmp 0x1002cf39
push 0
lea eax, [ebp - 0x42b8]
mov dword [ebp - 0x42b8], 0
push eax
push dword [ebp - 0x4298]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4298]
mov ecx, 1
cmp dword [ebp - 0x42b8], eax
mov eax, dword [ebp - 0x428c]
cmovne eax, ecx
push esi
mov dword [ebp - 0x428c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x428c]
test esi, esi
jne 0x1002cf79
mov edi, dword [ebp - 0x429c]
add dword [ebp - 0x42a0], 0x20
inc edi
mov dword [ebp - 0x429c], edi
cmp edi, dword [ebp - 0x430c]
jae 0x1002cf79
mov esi, dword [ebp - 0x42a0]
jmp 0x1002ccd1
mov dword [ebp - 0x4290], 0
mov esi, 1
mov eax, dword [ebp - 0x42a4]
push dword [ebp - 0x4294]
cmp eax, 0x1002fed0
jne 0x1002cf96
call fcn.10047705
add esp, 4
jmp 0x1002cfa2
lea ecx, [ebp - 0x42a8]
push ecx
call eax
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x42a8]
lea ecx, [ebp - 0x4328]
call fcn.1002d330
push dword [ebp - 0x4290]
call fcn.10047705
mov eax, dword [ebp - 0x42c0]
add esp, 4
cmp eax, 0xffffffff
je 0x1002cfdf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1002cfdf
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10043637
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10047604
call fcn.10047604
call fcn.1004377b
int3