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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4732db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1640
call fcn.00450a20
mov eax, dword [0x4a00b8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x1640], ecx
xor eax, eax
mov word [ebp - 0xc34], bx
mov ecx, 0xff
lea edi, [ebp - 0xc32]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esi + 0xc], ebx
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x1635], 0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1648], 0x200
jne 0x414861
lea ecx, [ebp - 0x163c]
call fcn.00407380
push 0x100
lea eax, [ebp - 0x1234]
push eax
push 1
lea ecx, [ebp - 0x163c]
mov byte [ebp - 4], 1
call fcn.00407d10
test al, al
jne 0x414844
push 0x486984
lea ecx, [ebp - 0x164c]
push ecx
mov dword [ebp - 0x164c], 1
call fcn.0044fb86
lea edx, [ebp - 0x1234]
push edx
mov ecx, esi
call fcn.00408790
lea ecx, [ebp - 0x163c]
mov byte [ebp - 4], 0
call fcn.00407390
mov eax, dword [esi + 0xc]
push eax
lea ecx, [ebp - 0x1634]
call fcn.00414e70
push 1
push 1
push 1
lea eax, [ebp - 0x1648]
push eax
lea ecx, [ebp - 0xc34]
push ecx
lea ecx, [ebp - 0x1634]
call fcn.00414f50
lea edx, [ebp - 0xc34]
push edx
call fcn.0044ff91
add esp, 4
cmp eax, 1
jae 0x4148be
push 0x486984
lea eax, [ebp - 0x1644]
push eax
mov dword [ebp - 0x1644], 1
call fcn.0044fb86
push ebx
lea ecx, [ebp - 0xc34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 3
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x163c], eax
jne 0x414933
mov eax, dword [esi + 0xc]
push ebx
push ebx
push 4
push ebx
push 3
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x163c], eax
je 0x414d44
push ebx
lea edx, [ebp - 0x1650]
push edx
push 2
lea ecx, [ebp + 0xa]
push ecx
push eax
mov byte [ebp + 0xa], 0xff
mov byte [ebp + 0xb], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x163c]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [ebp - 0x834]
push 0x479508
push edx
call fcn.004508d0
push 0x200
lea ecx, [ebp - 0x1034]
call fcn.00414090
add esp, 0xc
lea eax, [ebp - 0x1034]
push eax
lea ecx, [ebp - 0x834]
push ecx
call fcn.004508a6
lea edx, [ebp - 0x834]
push 0x479500
push edx
call fcn.004508a6
mov eax, dword [esi]
add esp, 0x10
push 0x200
lea ecx, [ebp - 0x1034]
push ecx
mov ecx, dword [ebp - 0x1640]
push eax
call fcn.00414160
test al, al
je 0x4149df
lea edx, [ebp - 0x834]
push 0x479508
push edx
call fcn.004508a6
lea eax, [ebp - 0x1034]
push eax
lea ecx, [ebp - 0x834]
push ecx
call fcn.004508a6
lea edx, [ebp - 0x834]
push 0x4794f8
push edx
call fcn.004508a6
add esp, 0x18
lea eax, [ebp - 0x834]
push 0x479508
push eax
call fcn.004508a6
mov ecx, dword [esi + 8]
push ecx
lea edx, [ebp - 0x834]
push edx
call fcn.004508a6
lea eax, [ebp - 0x834]
push 0x4794f8
push eax
call fcn.004508a6
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x20]
add esp, 0x18
test edi, edi
je 0x414a63
cmp word [edi], 0
je 0x414a63
lea ecx, [ebp - 0x834]
push 0x479508
push ecx
call fcn.004508a6
lea edx, [ebp - 0x834]
push edi
push edx
call fcn.004508a6
add esp, 0x10
test ebx, ebx
je 0x414a4f
cmp word [ebx], 0
jne 0x414a63
lea eax, [ebp - 0x834]
push 0x4794f8
push eax
call fcn.004508a6
add esp, 8
test ebx, ebx
je 0x414abd
cmp word [ebx], 0
je 0x414abd
test edi, edi
je 0x414a77
cmp word [edi], 0
jne 0x414a8b
lea ecx, [ebp - 0x834]
push 0x479508
push ecx
call fcn.004508a6
add esp, 8
lea edx, [ebp - 0x834]
push 0x479574
push edx
call fcn.004508a6
lea eax, [ebp - 0x834]
push ebx
push eax
call fcn.004508a6
lea ecx, [ebp - 0x834]
push 0x4794f8
push ecx
call fcn.004508a6
add esp, 0x18
mov edi, dword [esi + 4]
test edi, edi
je 0x414afc
cmp word [edi], 0
je 0x414afc
lea edx, [ebp - 0x834]
push 0x4794f4
push edx
call fcn.004508a6
lea eax, [ebp - 0x834]
push edi
push eax
call fcn.004508a6
lea ecx, [ebp - 0x834]
push 0x4794ec
push ecx
call fcn.004508a6
add esp, 0x18
mov eax, dword [esi + 0x10]
cmp eax, 3
ja case.default.0x414b08
jmp dword [eax*4 + 0x414d6c]
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je case.default.0x414b08
test eax, eax
je case.default.0x414b08
lea edx, [ebp - 0x834]
push str._Error:
push edx
call fcn.004508a6
mov eax, dword [esi + 0x18]
push eax
lea ecx, [ebp - 0x34]
push str.0x_08x
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x834]
push eax
call fcn.004508a6
push 0x4794f8
lea ecx, [ebp - 0x834]
push ecx
jmp 0x414c28
cmp dword [esi], 0x200
jne case.default.0x414b08
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x414b94
lea edx, [ebp - 0x834]
push str._Failed_
push edx
call fcn.004508a6
add esp, 8
jmp case.default.0x414b08
lea eax, [ebp - 0x834]
push str._Passed_
push eax
call fcn.004508a6
add esp, 8
jmp case.default.0x414b08
cmp dword [esi], 0x200
jne case.default.0x414b08
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x414bd2
lea ecx, [ebp - 0x834]
push 0x479518
push ecx
call fcn.004508a6
add esp, 8
jmp case.default.0x414b08
lea edx, [ebp - 0x834]
push str._Passed_
push edx
call fcn.004508a6
add esp, 8
jmp case.default.0x414b08
lea eax, [ebp - 0x834]
push str._Return_Code:
push eax
call fcn.004508a6
mov ecx, dword [esi + 0x18]
push ecx
lea edx, [ebp - 0x34]
push str.0x_08x
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x834]
push ecx
call fcn.004508a6
push 0x4794f8
lea edx, [ebp - 0x834]
push edx
call fcn.004508a6
add esp, 0x24
mov edi, dword [esi + 0x24]
test edi, edi
je 0x414ca0
cmp word [edi], 0
je 0x414ca0
lea eax, [ebp - 0x834]
push 0x479508
push eax
call fcn.004508a6
push edi
call fcn.0044ff91
add esp, 0xc
dec eax
test eax, eax
jl 0x414c64
cmp word [edi + eax*2], 0x5c
jne 0x414c57
inc eax
lea ecx, [edi + eax*2]
push ecx
lea edx, [ebp - 0x834]
push edx
call fcn.004508a6
mov eax, dword [esi + 0x28]
add esp, 8
test eax, eax
jne 0x414c8c
push 0x479514
lea eax, [ebp - 0x834]
push eax
jmp 0x414c98
push 0x47950c
lea ecx, [ebp - 0x834]
push ecx
call fcn.004508a6
add esp, 8
mov eax, dword [esi + 0x28]
test eax, eax
je 0x414cf8
test edi, edi
je 0x414cb1
cmp word [edi], 0
jne 0x414cc5
lea edx, [ebp - 0x834]
push 0x479508
push edx
call fcn.004508a6
add esp, 8
mov ecx, dword [esi + 0x28]
push 0xa
lea eax, [ebp - 0x34]
push eax
push ecx
call fcn.0045165a
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x834]
push eax
call fcn.004508a6
lea ecx, [ebp - 0x834]
push 0x4794f8
push ecx
call fcn.004508a6
add esp, 0x1c
lea edx, [ebp - 0x834]
push 0x479450
push edx
call fcn.004508a6
lea eax, [ebp - 0x834]
push eax
call fcn.0044ff91
mov esi, dword [ebp - 0x163c]
add esp, 0xc
push 0
lea ecx, [ebp + 8]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x834]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x1635], 1
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x1635]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00450f4f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4