Function at 0x1002c640
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 0x100733ab
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x4318
call fcn.1006a2d0
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.10045390
add esp, 0xc
mov dword [ebp - 0x4328], 0
lea eax, [ebp - 0x4324]
push 0x4c
push 0
push eax
call fcn.10045390
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], 0x1002fc00
mov dword [ebp - 0x42a4], 0x1002fc20
mov dword [ebp - 0x42d8], 0x1002fc00
mov dword [ebp - 0x42d4], 0x1002fc20
call fcn.1000c540
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 0x1002c7a5
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
movups xmmword [ebp - 0x250], xmm0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
jmp 0x1002c83d
push edi
call fcn.10043d49
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 0x1002c800
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x268]
call fcn.1000be00
push esi
call fcn.10043285
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 0x1002c881
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c877
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cd4f
push ecx
push edx
call fcn.100438c7
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 0x1002c8e0
xor esi, esi
jmp 0x1002c8e4
call edi
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x23c]
cmp ecx, 0xf
jbe 0x1002c925
mov edx, dword [ebp - 0x250]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c91b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cd54
push ecx
push edx
call fcn.100438c7
add esp, 8
test esi, esi
jne 0x1002ccf8
lea eax, [ebp - 0x42c8]
mov dword [ebp - 0x42c8], 0x1002fb50
mov dword [ebp - 0x42c4], 0x1002fb70
mov dword [ebp - 0x4288], 0x1002fc30
mov dword [ebp - 0x4284], 0x1002fc90
mov dword [ebp - 0x4280], 0x1002fca0
mov dword [ebp - 0x427c], 0x1002fcf0
mov dword [ebp - 0x4278], eax
mov dword [ebp - 0x4270], esi
mov dword [ebp - 0x4274], esi
call fcn.1002fd10
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.1002f3b0
mov esi, eax
add esp, 8
test esi, esi
je 0x1002c9ff
lea edx, [ebp - 0x42a8]
lea ecx, [ebp - 0x4328]
call fcn.1002d080
jmp 0x1002ccf8
xor edi, edi
mov dword [ebp - 0x428c], esi
mov dword [ebp - 0x429c], edi
cmp dword [ebp - 0x430c], edi
jbe 0x1002ccc9
xor esi, esi
mov dword [ebp - 0x42a0], esi
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10045390
add esp, 0xc
lea eax, [ebp - 0x220]
push dword [ebp - 0x42cc]
push 0x104
push eax
call fcn.1004e44f
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 0x1002cac7
push dword [ebp - 0x4290]
call fcn.10047325
add esp, 4
mov dword [ebp - 0x42ac], edi
add edi, edi
je 0x1002ccba
push edi
call fcn.10047340
mov edi, eax
add esp, 4
mov dword [ebp - 0x4290], edi
test edi, edi
je 0x1002ccc4
mov edx, dword [esi + 4]
mov ecx, dword [esi]
sub edx, ecx
jmp 0x1002cad8
mov edx, dword [esi + 4]
mov ecx, dword [esi]
sub edx, ecx
mov edi, dword [ebp - 0x4290]
test edi, edi
je 0x1002cb00
mov eax, dword [ebp - 0x42e4]
lea esi, [eax + ecx*2]
test edx, edx
je 0x1002cb00
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 0x1002caf0
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 0x1002cb75
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.1002f7e0
mov esi, eax
add esp, 0x20
mov dword [ebp - 0x428c], esi
test esi, esi
jne 0x1002ccc9
mov ax, word [ebp - 0x220]
xor edi, edi
test ax, ax
je 0x1002cbdf
xor ecx, ecx
movzx edx, ax
lea esi, [ebp - 0x220]
nop
movzx eax, dx
cmp eax, 0x2f
je 0x1002cba2
mov edx, 0x2f2f
cmp ax, dx
jne 0x1002cbc9
cmp ecx, 0x208
jae 0x1002cd59
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 0x1002cb90
mov eax, dword [ebp - 0x42b0]
push 0
cmp byte [eax + 0x19], 0
je 0x1002cbff
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1002cc89
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 0x1002cc41
mov dword [ebp - 0x428c], 1
jmp 0x1002cc89
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 0x1002ccc9
mov edi, dword [ebp - 0x429c]
add dword [ebp - 0x42a0], 0x20
inc edi
mov dword [ebp - 0x429c], edi
cmp edi, dword [ebp - 0x430c]
jae 0x1002ccc9
mov esi, dword [ebp - 0x42a0]
jmp 0x1002ca21
mov dword [ebp - 0x4290], 0
mov esi, 1
mov eax, dword [ebp - 0x42a4]
push dword [ebp - 0x4294]
cmp eax, 0x1002fc20
jne 0x1002cce6
call fcn.10047325
add esp, 4
jmp 0x1002ccf2
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.1002d080
push dword [ebp - 0x4290]
call fcn.10047325
mov eax, dword [ebp - 0x42c0]
add esp, 4
cmp eax, 0xffffffff
je 0x1002cd2f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1002cd2f
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.10043277
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10047224
call fcn.10047224
call fcn.100433bb
int3