Function at 0x402780
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4775ad
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x49c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4027b6
mov eax, dword [esi]
lea ecx, [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 8
test eax, eax
je 0x402928
mov edi, dword [esi + 0x10]
test edi, edi
je 0x402975
xor edx, edx
nop dword [eax]
mov eax, 0x488f10
lea ecx, [eax + 1]
mov dword [ebp - 0x5c], ecx
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4027f0
sub eax, dword [ebp - 0x5c]
mov ecx, esi
cmp dword [esi + 0x14], 0xf
jbe 0x402804
mov ecx, dword [esi]
push eax
push 0x488f10
push edx
push edi
push ecx
call fcn.0040ae90
add esp, 0x14
mov dword [ebp - 0x18], 0
cmp eax, 0xffffffff
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
cmove eax, edi
cmp edi, eax
mov dword [ebp - 0x5c], eax
mov ecx, eax
mov eax, esi
cmovb ecx, edi
cmp dword [esi + 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
jbe 0x402844
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040af40
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp edi, 2
jne 0x4028a8
cmp edx, 0xf
lea eax, [ebp - 0x28]
cmova eax, ecx
cmp byte [eax + 1], 0x3a
jne 0x4028a8
cmp edx, edi
jbe 0x40288e
cmp edx, 0xf
mov dword [ebp - 0x18], 3
lea eax, [ebp - 0x28]
cmova eax, ecx
mov word [eax + 2], 0x5c
jmp 0x40289c
push 0x5c
push dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040b0d0
inc dword [ebp - 0x5c]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
test edi, edi
je 0x4028e6
cmp edx, 0xf
lea eax, [ebp - 0x28]
cmova eax, ecx
lea ecx, [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 8
test eax, eax
je 0x4028e0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
test eax, eax
jne 0x402945
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
inc dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0xf
jbe 0x40291a
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402910
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402979
push edx
push ecx
call fcn.0047613e
add esp, 8
mov edi, dword [esi + 0x10]
mov edx, dword [ebp - 0x5c]
cmp edx, edi
jb 0x4027e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cb4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x402975
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40296b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402979
push ecx
push edx
call fcn.0047613e
add esp, 8
xor al, al
jmp 0x40292a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3