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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4326ce
push eax
mov eax, 0x11b0
mov dword fs:[0], esp
call fcn.00416360
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11cc]
push edi
push 0x104
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x64]
push 0
push ecx
mov eax, esi
call fcn.0041fe30
add esp, 0x10
test eax, eax
jne 0x430e0d
push esi
call fcn.00420580
add esp, 4
test eax, eax
jne 0x430e0d
mov ecx, esi
lea esi, [esp + 0x24]
call fcn.00412430
mov ecx, dword [esp + 0x11d4]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x11cc], 0
call fcn.00411ba0
mov byte [esp + 0x11c8], 1
mov eax, dword [0x44e010]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e010
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x11c8], 2
test dword [esp + 0x64], 0x800
je 0x430a56
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xb8]
call fcn.00411b00
lea ecx, [esp + 0x20]
push 0xfde9
push ecx
lea ebx, [esp + 0x24]
mov byte [esp + 0x11d0], 3
call fcn.00430760
add esp, 8
lea edi, [esp + 0x14]
mov byte [esp + 0x11c8], 4
call fcn.00411d80
mov byte [esp + 0x11c8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x430aaf
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xb8]
call fcn.00411b00
lea edx, [esp + 0x20]
push 0
push edx
lea ebx, [esp + 0x24]
mov byte [esp + 0x11d0], 5
call fcn.00430760
add esp, 8
lea edi, [esp + 0x14]
mov byte [esp + 0x11c8], 6
call fcn.00411d80
mov byte [esp + 0x11c8], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430abb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11c8], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430ae3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
cmp dword [edi - 4], 1
mov ebx, dword [edi - 0xc]
mov dword [esp + 0x20], ebx
jle 0x430b05
mov ecx, ebx
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00411de0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
lea esi, [esp + 0x38]
mov ebp, edi
call fcn.00412440
xor esi, esi
test ebx, ebx
mov byte [esp + 0x11c8], 7
jl 0x430bc2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebp + esi*2]
test ax, ax
je 0x430b9a
cmp ax, 0x5c
je 0x430b42
cmp ax, 0x2f
jne 0x430b8f
test edi, edi
mov word [ebp + esi*2], 0
jne 0x430b51
xor eax, eax
jmp 0x430b65
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430b56
sub eax, edx
sar eax, 1
push eax
push edi
lea eax, [esp + 0x20]
push eax
call fcn.00412170
push 1
push 0x445364
lea ecx, [esp + 0x20]
push ecx
call fcn.00412170
mov edx, dword [esp + 0x18]
push 0
push edx
call ebx
lea edi, [ebp + esi*2 + 2]
add esi, 1
cmp esi, dword [esp + 0x20]
jle 0x430b2c
jmp 0x430bc2
test edi, edi
jne 0x430ba2
xor eax, eax
jmp 0x430bb6
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430ba7
sub eax, edx
sar eax, 1
push eax
push edi
lea eax, [esp + 0x20]
push eax
call fcn.00412170
cmp word [edi], 0
jne 0x430c3c
lea ecx, [esp + 0x38]
push ecx
call fcn.00412500
mov byte [esp + 0x11cc], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430bfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11c8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430c25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004124a0
add esp, 4
mov eax, 1
jmp 0x430e0f
mov edx, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x430da3
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
lea esi, [esp + 0x48]
call fcn.00412420
mov ebp, dword [esp + 0x11d0]
lea edx, [esp + 0x1bc]
push edx
mov eax, ebp
mov byte [esp + 0x11cc], 9
call fcn.0041f4e0
mov esi, eax
add esp, 4
test esi, esi
jl 0x430cea
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x430d25
push 0
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x1c8]
push ecx
push edi
mov dword [esp + 0x30], 0
call ebx
test eax, eax
je 0x430d96
cmp dword [esp + 0x1c], esi
jne 0x430d96
lea edx, [esp + 0x1bc]
push edx
mov eax, ebp
call fcn.0041f4e0
mov esi, eax
add esp, 4
test esi, esi
jge 0x430c9f
lea eax, [esp + 0x48]
push eax
call fcn.00412450
lea ecx, [esp + 0x3c]
add esp, 4
push ecx
call fcn.00412500
mov byte [esp + 0x11cc], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x430dcc
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x54]
push edx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea edx, [esp + 0x30]
push edx
mov eax, edx
push eax
mov ecx, edx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea edx, [esp + 0x48]
push edx
call fcn.00412450
lea eax, [esp + 0x3c]
add esp, 4
push eax
call fcn.00412500
mov byte [esp + 0x11cc], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x430bf1
lea edx, [esp + 0x48]
push edx
call fcn.00412450
add esp, 4
lea eax, [esp + 0x38]
push eax
call fcn.00412500
mov byte [esp + 0x11cc], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430dd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x11c8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430e00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004124a0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x11c0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x11bc
ret