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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c6eb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x54
push esi
mov eax, dword [0x43d054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 0x10
push 0
cmovae eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40686a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406a08
push ecx
lea edx, [ebx + 8]
lea ecx, [ebp - 0x60]
call fcn.0040c6f0
lea ecx, [ebx + 0x20]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.0040c910
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 3
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 4
jb 0x4068bd
lea eax, [edx + 4]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x4068af
mov eax, dword [ecx]
mov dword [eax + edx], 0x6578652e
mov byte [eax + edx + 4], 0
jmp 0x4068d4
push 4
push str..exe
mov byte [ebp - 0x15], 0
push dword [ebp - 0x15]
push 4
call fcn.00402990
mov ecx, eax
movups xmm0, xmmword [ecx]
lea eax, [ebp - 0x30]
push 0x439b2c
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
cmp dword [ebp - 0x1c], 0x10
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.00413cdd
mov edx, dword [ebp - 0x1c]
add esp, 8
mov esi, eax
cmp edx, 0x10
jb 0x406945
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40693b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a94
push edx
push ecx
call fcn.0040ed7f
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x40698b
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406981
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a94
push edx
push ecx
call fcn.0040ed7f
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x4069d1
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4069c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a94
push edx
push ecx
call fcn.0040ed7f
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
test esi, esi
je 0x406a08
push esi
push 0x12000
push 1
push 0x43daa0
call fcn.00418588
push esi
call fcn.00413efd
add esp, 0x14
mov byte [ebp - 0x11], 1
jmp 0x406a0c
mov byte [ebp - 0x11], 0
mov edx, dword [ebx + 0x1c]
cmp edx, 0x10
jb 0x406a3c
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406a32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a99
push edx
push ecx
call fcn.0040ed7f
add esp, 8
mov edx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp edx, 0x10
jb 0x406a7e
mov ecx, dword [ebx + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406a74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a99
push edx
push ecx
call fcn.0040ed7f
add esp, 8
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004134a7
call fcn.004134a7
int3