Function at 0x420ff0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x40cc
call fcn.00569a40
mov eax, dword [0x5f9e74]
xor eax, esp
mov dword [esp + 0x40c8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x2c], edx
push edi
mov dword [esp + 0x48], eax
lea esi, [edx + 2]
mov dword [esp + 0x28], ebx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x421025
push 0
push 0x80
push 3
sub edx, esi
mov dword [esp + 0x1c], 0x423f80
push 0
sar edx, 1
push 1
push closesocket
push ecx
lea eax, [edx + edx]
mov dword [esp + 0x30], 0x413ab0
mov dword [esp + 0x48], eax
mov dword [esp + 0x68], 0x423f80
mov dword [esp + 0x6c], 0x413ab0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x5c], eax
cmp eax, 0xffffffff
jne 0x4210a3
call esi
test eax, eax
je 0x4210a3
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40c8]
xor ecx, esp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x423f40
mov dword [esp + 0x58], 0x423f60
mov dword [esp + 0xb0], 0x424020
mov dword [esp + 0xb4], 0x424080
mov dword [esp + 0xb8], 0x424090
mov dword [esp + 0xbc], 0x4240e0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xc4], ebx
call fcn.00424100
lea ecx, [esp + 0x60]
call fcn.00421850
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0xb8]
call fcn.004237d0
mov edi, eax
add esp, 8
mov dword [esp + 0x38], edi
test edi, edi
je 0x42113e
lea edx, [esp + 0x10]
lea ecx, [esp + 0x60]
call fcn.004218c0
test edi, edi
jne 0x42143c
xor ecx, ecx
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x7c], ecx
jbe 0x42142c
mov edi, dword [esp + 0x70]
add edi, 0x19
mov dword [esp + 0x1c], edi
nop dword [eax]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0
mov esi, dword [eax + ecx*4 + 4]
sub esi, dword [eax + ecx*4]
cmp esi, dword [esp + 0x28]
jbe 0x4211c4
push ebx
call fcn.00577f41
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x28], esi
lea eax, [eax + esi*2]
add eax, 2
je 0x421507
push eax
call fcn.0057d9c9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x421509
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
push ecx
push esi
lea edx, [ecx + 2]
mov ecx, ebx
call fcn.00407f20
mov ecx, esi
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4211e0
sub ecx, edx
mov eax, 0x5c
sar ecx, 1
mov word [ebx + ecx*2], ax
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421200
mov esi, dword [esp + 0x18]
sub ecx, edx
mov edx, dword [esp + 0xa0]
sar ecx, 1
inc ecx
mov eax, dword [edx + esi*4]
mov edx, dword [edx + esi*4 + 4]
lea ecx, [ebx + ecx*2]
sub edx, eax
test ecx, ecx
je 0x421254
mov esi, dword [esp + 0xa4]
lea esi, [esi + eax*2]
test edx, edx
je 0x421250
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x421240
mov esi, dword [esp + 0x18]
cmp byte [edi], 0
jne 0x4212a1
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x58]
push eax
push esi
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x80]
call fcn.00423b60
mov edi, eax
add esp, 0x20
mov dword [esp + 0x38], edi
test edi, edi
jne 0x42150e
mov ecx, dword [esp + 0x30]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4212b0
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp word [ebx + edi*2], ax
lea esi, [ebx + edi*2]
je 0x421300
nop dword [eax + eax]
cmp word [esi], 0x2f
jne 0x4212f5
xor eax, eax
push eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4212ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x5c
mov word [esi], ax
inc edi
cmp word [ebx + edi*2], 0
lea esi, [ebx + edi*2]
jne 0x4212d0
mov edi, dword [esp + 0x1c]
push 0
push ebx
cmp byte [edi], 0
je 0x421327
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42140e
call esi
jmp 0x42140e
call fcn.0057e13c
add esp, 8
test eax, eax
jne 0x421349
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x421349
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x44], esi
cmp esi, 0xffffffff
jne 0x42137b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x421519
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea edx, [edx + ecx]
lea ecx, [esp + 0x48]
call fcn.00423e30
add esp, 4
test eax, eax
jne 0x421519
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x1c], eax
jne 0x421519
cmp byte [edi + 3], 0
je 0x4213ca
lea eax, [edi - 0x19]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp esi, 0xffffffff
je 0x4213ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4213f3
call esi
test eax, eax
je 0x4213f3
mov edi, 0xb
jmp 0x42142c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 4], 0
je 0x421403
push dword [edi - 5]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x42140e
push ebx
call eax
mov ecx, dword [esp + 0x18]
add edi, 0x20
inc ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x7c]
jb 0x421170
mov edi, dword [esp + 0x38]
push dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x1c]
add esp, 8
push dword [esp + 0x90]
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x1c]
push dword [esp + 0x9c]
lea eax, [esp + 0x1c]
push eax
call dword [esp + 0x24]
push dword [esp + 0xa8]
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x2c]
push dword [esp + 0xb4]
lea eax, [esp + 0x2c]
push eax
call dword [esp + 0x34]
push dword [esp + 0xc0]
lea eax, [esp + 0x34]
push eax
call dword [esp + 0x3c]
push dword [esp + 0xcc]
lea eax, [esp + 0x3c]
push eax
call dword [esp + 0x44]
lea edx, [esp + 0x40]
mov dword [esp + 0xd4], 0
lea ecx, [esp + 0x90]
mov dword [esp + 0xd8], 0
call fcn.004217a0
lea ecx, [esp + 0x90]
call fcn.00421850
push ebx
call fcn.00577f41
mov eax, dword [esp + 0x90]
add esp, 0x34
cmp eax, 0xffffffff
je 0x4214f0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4214f0
call esi
mov ecx, dword [esp + 0x40d4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42142c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xb
jmp 0x42142c