Function at 0x100039a0
Capabilities:
Create directory
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056f03
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x1006e1e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp + 0xc]
call fcn.10003c20
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x10003a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10003a20
mov byte [ebp - 0x57], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10002290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10002290
mov al, byte [ebp - 0x57]
jmp 0x10003bf9
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x60]
call fcn.1001a680
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
lea edx, [ebp + 8]
push edx
call fcn.10003c60
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
lea edx, [ebp + 8]
push edx
call fcn.10003c60
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.1001a970
push 0x10064f80
lea ecx, [ebp + 8]
call fcn.10003c20
push eax
call fcn.1002de83
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x10003ac8
mov byte [ebp - 0x55], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.1001a710
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10002290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10002290
mov al, byte [ebp - 0x55]
jmp 0x10003bf9
mov eax, dword [ebp - 0x5c]
push eax
call fcn.1002dfa7
add esp, 4
test eax, eax
jne 0x10003bbf
mov ecx, dword [ebp - 0x5c]
push ecx
push 0x40
push 1
lea edx, [ebp - 0x54]
push edx
call fcn.1002e1d1
add esp, 0x10
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0x40
jge 0x10003afe
jmp 0x10003bbf
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x74]
call fcn.10002210
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.10003c80
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x74]
call fcn.10002290
mov ecx, dword [ebp - 0x5c]
push ecx
push 1
push 4
lea edx, [ebp - 0x68]
push edx
call fcn.1002e1d1
add esp, 0x10
mov eax, dword [ebp - 0x68]
push eax
call fcn.1002db91
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
push 1
mov eax, dword [ebp - 0x64]
push eax
call fcn.1002e1d1
add esp, 0x10
push 0x10064f88
lea ecx, [ebp - 0x70]
call fcn.10003c20
push eax
call fcn.1002de83
add esp, 8
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
push 1
mov eax, dword [ebp - 0x64]
push eax
call fcn.1002e3d4
add esp, 0x10
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.1002e4be
add esp, 4
mov edx, dword [ebp - 0x64]
push edx
call fcn.1002dc23
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.10002290
jmp 0x10003ac8
mov eax, dword [ebp - 0x5c]
push eax
call fcn.1002e4be
add esp, 4
mov byte [ebp - 0x56], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.1001a710
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10002290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10002290
mov al, byte [ebp - 0x56]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002d4ad
mov esp, ebp
pop ebp
ret