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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x740
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x73c], esi
mov dword [ebp - 0x740], ebx
call fcn.10425c00
add esp, 0xc
test esi, esi
je 0x102a4823
mov ecx, dword [0x11cd7314]
cmp ecx, dword [edi + 0x80]
ja 0x102a4823
cmp byte [edi + 0x70], 0
jne 0x102a46bf
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x1474], 0
je 0x102a46d9
mov ecx, dword [edi + 4]
push ebx
mov ecx, dword [ecx + 0x1c]
call fcn.102a1a50
mov ecx, dword [0x11cd7314]
mov ebx, eax
mov dword [ebp - 0x740], ebx
push ecx
push ebx
lea eax, [ebp - 0x20c]
push 0x10456530
push eax
call fcn.101bde90
inc dword [0x11cd7314]
lea eax, [ebp - 0x734]
push 0x528
push 0
push eax
call fcn.10425c00
mov eax, dword [esi + 0x20c]
add esp, 0x1c
movzx ecx, byte [ebp - 0x72f]
and eax, 0xffff0000
cmp eax, 0x20000
mov dl, byte [esi + 0x14]
movzx eax, byte [edi + 0x68]
mov ebx, 1
cmovae ecx, ebx
mov byte [ebp - 0x730], dl
mov byte [ebp - 0x72f], cl
mov ecx, dword [ebp - 0x72e]
and ecx, 0xfff0
or cx, ax
mov eax, 0xffcf
and cx, ax
movzx eax, byte [edi + 0x69]
and al, 3
mov word [edi + 0x68], bx
movzx eax, al
xor ebx, ebx
shl ax, 4
or cx, ax
mov eax, 0xf83f
and cx, ax
mov al, byte [ebp + 0x10]
sub al, 8
and al, 0x1f
movzx eax, al
shl ax, 6
or cx, ax
mov word [ebp - 0x72e], cx
test dl, dl
je 0x102a47dd
lea eax, [ebp - 0x728]
lea edi, [esi + 0x1c]
mov ecx, dword [edi]
lea edi, [edi + 0x38]
mov edx, dword [edi - 0x2c]
lea eax, [eax + 0x24]
mov esi, dword [edi - 0x3c]
and edx, 7
mov dword [eax - 0x24], ecx
inc ebx
mov ecx, dword [edi - 0x34]
mov dword [eax - 0x20], ecx
mov ecx, dword [edi - 0x30]
mov dword [eax - 0x1c], ecx
mov ecx, dword [eax - 0x18]
and ecx, 0xfffffff0
mov dword [eax - 0x28], esi
or edx, ecx
mov dword [eax - 0x14], esi
mov ecx, dword [edi - 0x28]
mov dword [eax - 0x18], edx
mov dword [eax - 0x10], ecx
movzx ecx, byte [ebp - 0x730]
cmp ebx, ecx
jb 0x102a4794
mov esi, dword [ebp - 0x73c]
push 0
push dword [ebp - 0x740]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102a47fe
call ebx
cmp eax, 0xb7
jne 0x102a4823
push 0
push 0x80
push 4
push 0
push 1
push 4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x102a4838
call ebx
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x738]
push 0
push eax
push 4
push 0x1049b6a8
push edi
mov dword [ebp - 0x738], 0
call ebx
push 0
lea eax, [ebp - 0x738]
push eax
push 4
push 0x1049b6ac
push edi
call ebx
push 0
lea eax, [ebp - 0x738]
push eax
push 0x528
lea eax, [ebp - 0x734]
push eax
push edi
call ebx
xor ebx, ebx
cmp byte [ebp - 0x730], bl
jbe 0x102a48b7
add esi, 0x38
push 0
lea eax, [ebp - 0x738]
push eax
push dword [esi - 0x20]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, byte [ebp - 0x730]
lea esi, [esi + 0x38]
inc ebx
cmp ebx, eax
jb 0x102a4893
mov ecx, dword [ebp - 0x73c]
mov eax, dword [ecx + 0x20c]
and eax, 0xffff0000
cmp eax, 0x20000
jb 0x102a490c
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x738]
push 0
push eax
push 4
lea esi, [ecx + 0x218]
push esi
push edi
call ebx
cmp dword [esi], 0
jbe 0x102a490c
push 0
lea eax, [ebp - 0x738]
push eax
mov eax, dword [ebp - 0x73c]
push 0x2a30
add eax, 0x220
push eax
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 0xc