Function at 0x404310
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560d40
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5bee64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x5a09a0
lea ecx, [ebp - 0x14]
call fcn.00402b20
mov dword [ebp - 4], 0
xor ecx, ecx
test ebx, ebx
lea eax, [ebx + 4]
cmove eax, ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.00403440
mov dword [ebp - 4], 2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
call fcn.00403440
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
push dword [ebp - 0x10]
call fcn.00404830
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00402c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402c50
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
sub eax, edi
sar eax, 2
cmp eax, 2
jae 0x4043e4
mov ecx, ebx
call fcn.00404770
movzx esi, al
jmp 0x40455d
mov eax, dword [ebx + 4]
cmp dword [eax - 0xc], 0
jge 0x4043f7
push 0x80070057
call fcn.00403290
mov al, byte [eax]
cmp al, 0x5c
jne 0x40441c
mov eax, dword [ebx + 4]
cmp dword [eax - 0xc], 1
jge 0x404410
push 0x80070057
call fcn.00403290
mov al, byte [eax + 1]
cmp al, 0x5c
mov eax, 0x5a09a4
je 0x404421
mov eax, 0x59e529
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402bd0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1c]
push dword [edi]
call fcn.004046e0
mov ebx, dword [ebp - 0x34]
lea esi, [edi + 4]
cmp esi, ebx
je 0x40454c
mov edx, dword [ebp - 0x18]
mov edi, dword [esi]
mov ecx, dword [edx - 0xc]
test ecx, ecx
je 0x404483
lea eax, [ecx - 1]
test eax, eax
js 0x4043ed
cmp eax, ecx
jg 0x4043ed
mov al, byte [edx + eax]
cmp al, 0x2f
je 0x404483
lea eax, [ecx - 1]
test eax, eax
js 0x4043ed
cmp eax, ecx
jg 0x4043ed
mov al, byte [edx + eax]
cmp al, 0x5c
je 0x404483
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402150
test edi, edi
jne 0x40448b
xor eax, eax
jmp 0x404499
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404490
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x18]
call fcn.004021b0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004022c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14]
push 0x5a09a8
call fcn.00402b20
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x24]
push dword [eax]
call fcn.004046e0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14]
call fcn.00402c50
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403440
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
call fcn.00404f60
cmp eax, 0xffffffff
jne 0x404522
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x10]
call fcn.00402c50
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x24]
call fcn.00403230
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x404541
xor esi, esi
jmp 0x404551
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x10]
call fcn.00402c50
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x24]
call fcn.00403230
add esi, 4
cmp esi, ebx
jne 0x404446
mov esi, 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.00403230
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
call fcn.00402c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004050c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret