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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483cab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1640
call fcn.0040f8c0
mov eax, dword [0x4ce19c]
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 0x4248a1
lea ecx, [ebp - 0x163c]
call fcn.0046c680
push 0x100
lea eax, [ebp - 0x1234]
push eax
push 1
lea ecx, [ebp - 0x163c]
mov byte [ebp - 4], 1
call fcn.00410660
test al, al
jne 0x424884
push 0x4b17d0
lea ecx, [ebp - 0x164c]
push ecx
mov dword [ebp - 0x164c], 1
call sub.MSVCR71.dll__CxxThrowException
lea edx, [ebp - 0x1234]
push edx
mov ecx, esi
call fcn.004110a0
lea ecx, [ebp - 0x163c]
mov byte [ebp - 4], 0
call fcn.0045d490
mov eax, dword [esi + 0xc]
push eax
lea ecx, [ebp - 0x1634]
call fcn.00424eb0
push 1
push 1
push 1
lea eax, [ebp - 0x1648]
push eax
lea ecx, [ebp - 0xc34]
push ecx
lea ecx, [ebp - 0x1634]
call fcn.00424f90
lea edx, [ebp - 0xc34]
push edx
call sub.MSVCR71.dll_wcslen
add esp, 4
cmp eax, 1
jae 0x4248fe
push 0x4b17d0
lea eax, [ebp - 0x1644]
push eax
mov dword [ebp - 0x1644], 1
call sub.MSVCR71.dll__CxxThrowException
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 0x424973
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 0x424d84
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 0x491850
push edx
call sub.MSVCR71.dll_wcscpy
push 0x200
lea ecx, [ebp - 0x1034]
call fcn.004240d0
add esp, 0xc
lea eax, [ebp - 0x1034]
push eax
lea ecx, [ebp - 0x834]
push ecx
call sub.MSVCR71.dll_wcscat
lea edx, [ebp - 0x834]
push 0x491848
push edx
call sub.MSVCR71.dll_wcscat
mov eax, dword [esi]
add esp, 0x10
push 0x200
lea ecx, [ebp - 0x1034]
push ecx
mov ecx, dword [ebp - 0x1640]
push eax
call fcn.004241a0
test al, al
je 0x424a1f
lea edx, [ebp - 0x834]
push 0x491850
push edx
call sub.MSVCR71.dll_wcscat
lea eax, [ebp - 0x1034]
push eax
lea ecx, [ebp - 0x834]
push ecx
call sub.MSVCR71.dll_wcscat
lea edx, [ebp - 0x834]
push 0x491840
push edx
call sub.MSVCR71.dll_wcscat
add esp, 0x18
lea eax, [ebp - 0x834]
push 0x491850
push eax
call sub.MSVCR71.dll_wcscat
mov ecx, dword [esi + 8]
push ecx
lea edx, [ebp - 0x834]
push edx
call sub.MSVCR71.dll_wcscat
lea eax, [ebp - 0x834]
push 0x491840
push eax
call sub.MSVCR71.dll_wcscat
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x20]
add esp, 0x18
test edi, edi
je 0x424aa3
cmp word [edi], 0
je 0x424aa3
lea ecx, [ebp - 0x834]
push 0x491850
push ecx
call sub.MSVCR71.dll_wcscat
lea edx, [ebp - 0x834]
push edi
push edx
call sub.MSVCR71.dll_wcscat
add esp, 0x10
test ebx, ebx
je 0x424a8f
cmp word [ebx], 0
jne 0x424aa3
lea eax, [ebp - 0x834]
push 0x491840
push eax
call sub.MSVCR71.dll_wcscat
add esp, 8
test ebx, ebx
je 0x424afd
cmp word [ebx], 0
je 0x424afd
test edi, edi
je 0x424ab7
cmp word [edi], 0
jne 0x424acb
lea ecx, [ebp - 0x834]
push 0x491850
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 8
lea edx, [ebp - 0x834]
push 0x4918bc
push edx
call sub.MSVCR71.dll_wcscat
lea eax, [ebp - 0x834]
push ebx
push eax
call sub.MSVCR71.dll_wcscat
lea ecx, [ebp - 0x834]
push 0x491840
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 0x18
mov edi, dword [esi + 4]
test edi, edi
je 0x424b3c
cmp word [edi], 0
je 0x424b3c
lea edx, [ebp - 0x834]
push 0x48d1ec
push edx
call sub.MSVCR71.dll_wcscat
lea eax, [ebp - 0x834]
push edi
push eax
call sub.MSVCR71.dll_wcscat
lea ecx, [ebp - 0x834]
push 0x491838
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 0x18
mov eax, dword [esi + 0x10]
cmp eax, 3
ja case.default.0x424b48
jmp dword [eax*4 + 0x424dac]
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je case.default.0x424b48
test eax, eax
je case.default.0x424b48
lea edx, [ebp - 0x834]
push str._Error:
push edx
call sub.MSVCR71.dll_wcscat
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 sub.MSVCR71.dll_wcscat
push 0x491840
lea ecx, [ebp - 0x834]
push ecx
jmp 0x424c68
cmp dword [esi], 0x200
jne case.default.0x424b48
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x424bd4
lea edx, [ebp - 0x834]
push str._Failed_
push edx
call sub.MSVCR71.dll_wcscat
add esp, 8
jmp case.default.0x424b48
lea eax, [ebp - 0x834]
push str._Passed_
push eax
call sub.MSVCR71.dll_wcscat
add esp, 8
jmp case.default.0x424b48
cmp dword [esi], 0x200
jne case.default.0x424b48
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x424c12
lea ecx, [ebp - 0x834]
push 0x491860
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 8
jmp case.default.0x424b48
lea edx, [ebp - 0x834]
push str._Passed_
push edx
call sub.MSVCR71.dll_wcscat
add esp, 8
jmp case.default.0x424b48
lea eax, [ebp - 0x834]
push str._Return_Code:
push eax
call sub.MSVCR71.dll_wcscat
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 sub.MSVCR71.dll_wcscat
push 0x491840
lea edx, [ebp - 0x834]
push edx
call sub.MSVCR71.dll_wcscat
add esp, 0x24
mov edi, dword [esi + 0x24]
test edi, edi
je 0x424ce0
cmp word [edi], 0
je 0x424ce0
lea eax, [ebp - 0x834]
push 0x491850
push eax
call sub.MSVCR71.dll_wcscat
push edi
call sub.MSVCR71.dll_wcslen
add esp, 0xc
dec eax
test eax, eax
jl 0x424ca4
cmp word [edi + eax*2], 0x5c
jne 0x424c97
inc eax
lea ecx, [edi + eax*2]
push ecx
lea edx, [ebp - 0x834]
push edx
call sub.MSVCR71.dll_wcscat
mov eax, dword [esi + 0x28]
add esp, 8
test eax, eax
jne 0x424ccc
push 0x49185c
lea eax, [ebp - 0x834]
push eax
jmp 0x424cd8
push 0x491854
lea ecx, [ebp - 0x834]
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 8
mov eax, dword [esi + 0x28]
test eax, eax
je 0x424d38
test edi, edi
je 0x424cf1
cmp word [edi], 0
jne 0x424d05
lea edx, [ebp - 0x834]
push 0x491850
push edx
call sub.MSVCR71.dll_wcscat
add esp, 8
mov ecx, dword [esi + 0x28]
push 0xa
lea eax, [ebp - 0x34]
push eax
push ecx
call sub.MSVCR71.dll__itow
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x834]
push eax
call sub.MSVCR71.dll_wcscat
lea ecx, [ebp - 0x834]
push 0x491840
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 0x1c
lea edx, [ebp - 0x834]
push 0x49179c
push edx
call sub.MSVCR71.dll_wcscat
lea eax, [ebp - 0x834]
push eax
call sub.MSVCR71.dll_wcslen
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.00475533
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4