Function at 0x423430
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov ebx, dword [ebp + 8]
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [esp + 0x20], eax
cmp byte [ebx + 0xb], 0
mov edi, ebx
jns 0x423454
mov edi, dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x423482
test al, 0x10
jne 0x423557
push edi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_conflicts_with_an_existing_file.___n
call fcn.00423660
add esp, 0xc
xor ebx, ebx
jmp 0x42362e
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 0xb]
mov ecx, ebx
test al, al
jns 0x42349f
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
add eax, eax
test eax, eax
je 0x4234f2
movzx edx, word [ecx + eax - 2]
add eax, 0xfffffffe
cmp dx, 0x5c
je 0x4234b9
cmp dx, 0x2f
jne 0x4234a1
cmp eax, 0xfffffffe
je 0x4234f2
sar eax, 1
lea edx, [ebx + 0xc]
lea esi, [esp + 4]
mov ecx, esi
push edx
push eax
push 0
push ebx
call fcn.0041c0e0
movsd xmm0, qword [esi]
lea eax, [esp + 0x10]
movsd qword [eax], xmm0
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
push eax
call fcn.00423430
add esp, 4
test al, al
je 0x423571
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x42361b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
jne 0x42360a
push edi
call fcn.00483176
add esp, 4
cmp eax, 0x7ffffff0
jae 0x423650
mov ecx, eax
cmp eax, 5
mov dword [esp], esi
jae 0x423583
lea ebx, [esp + 4]
mov byte [ebx + 0xb], cl
cmp ecx, 3
jne 0x423643
movzx eax, word [edi + 4]
mov word [esp + 8], ax
mov eax, dword [edi]
mov dword [esp + 4], eax
jmp 0x4235c0
push edi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_exists___n
call fcn.00423660
add esp, 0xc
mov bl, 1
jmp 0x42362e
push str.Failed_to_create_one_of_the_parent_directories
call fcn.00423660
add esp, 4
jmp 0x423619
lea esi, [ecx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
mov ebx, ecx
call fcn.0046acad
mov ecx, ebx
add esp, 4
mov ebx, eax
mov dword [esp + 4], eax
or esi, 0x80000000
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov eax, ecx
add eax, ecx
push eax
push edi
push ebx
mov esi, ecx
call fcn.0046e010
mov ecx, esi
add esp, 0xc
mov word [ebx + ecx*2], 0
cmp byte [esp + 0xf], 0
jns 0x4235d3
mov eax, dword [esp + 4]
jmp 0x4235d7
lea eax, [esp + 4]
mov esi, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
cmp byte [esp + 0xf], 0
jns 0x423604
push dword [esp + 4]
call fcn.0046acdd
add esp, 4
test bl, bl
mov bl, 1
jne 0x42361b
push esi
push edi
push str.Failed_to_create_directory__ls__last_error_is__d_n
call fcn.00423660
add esp, 0xc
xor ebx, ebx
cmp byte [esp + 0x1b], 0
jns 0x42362e
push dword [esp + 0x10]
call fcn.0046acdd
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.0046b8b5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ecx, ecx
jne 0x4235ad
jmp 0x4235c0
lea ecx, [esp + 4]
call fcn.004a96f0
int3