Function at 0x4201f0
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x539fc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab980]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
push 1
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.0050dd17
lea ecx, [esp + 0x18]
push 1
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 2
call fcn.0050e22b
mov esi, dword [esp + 0x14]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
or ebp, 0xffffffff
cmp dl, bl
jne 0x420275
test cl, cl
je 0x420271
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x420275
add eax, 2
add esi, 2
test cl, cl
jne 0x42024a
xor eax, eax
jmp 0x420279
sbb eax, eax
sbb eax, ebp
test eax, eax
lea ecx, [esp + 0x18]
setne bl
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.005128e4
test bl, bl
je 0x4202e4
push 0x5c
lea ecx, [esp + 0x30]
call fcn.0050e31f
test eax, eax
jge 0x4202b7
mov eax, dword [esp + 0x30]
mov dword [eax], 3
jmp 0x420419
inc eax
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call fcn.00512a1d
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 1
call fcn.005128e4
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, ebp
setne cl
mov eax, ecx
test eax, eax
je 0x42030b
mov edx, dword [esp + 0x30]
mov dword [edx], 0
jmp 0x42046d
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.00512a1d
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 1
call fcn.005128e4
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0050e31f
test eax, eax
jge 0x42035d
mov edx, dword [esp + 0x30]
mov dword [edx], 3
jmp 0x420419
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 5
call fcn.00512a1d
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 1
call fcn.005128e4
mov eax, dword [esp + 0x10]
mov esi, 0x5966b8
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4203bb
test cl, cl
je 0x4203b7
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4203bb
add eax, 2
add esi, 2
test cl, cl
jne 0x420393
xor eax, eax
jmp 0x4203bf
sbb eax, eax
sbb eax, ebp
test eax, eax
jne 0x4203d2
mov eax, dword [esp + 0x30]
mov dword [eax], 0
jmp 0x42046d
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
push edi
push esi
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00512659
call fcn.004201f0
add esp, 0xc
test eax, eax
je 0x420419
mov eax, dword [esp + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x420449
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [esi], eax
je 0x420467
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebp
call fcn.005128e4
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x2c]
push 0
push ecx
mov ecx, edi
call fcn.0051111f
test eax, eax
jne 0x420467
lea edx, [esp + 0x2c]
mov ecx, edi
push edx
call fcn.00510fd7
mov dword [esi], 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebp
call fcn.005128e4
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret