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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0x124], edi
cmp dword [edi + 0x14], 8
jb 0x4643f9
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46459e
mov eax, dword [edi + 0x10]
test eax, eax
je 0x464642
xor esi, esi
mov dword [ebp - 0x128], 0x100
mov edi, 0x5f6474
mov ebx, eax
lea ecx, [edi + 2]
nop word [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x464430
mov eax, dword [ebp - 0x124]
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x120], eax
cmp dword [eax + 0x14], 8
jb 0x464459
mov eax, dword [eax]
mov dword [ebp - 0x120], eax
test edi, edi
je 0x4644e4
cmp esi, ebx
jae 0x4644e4
push 0x100
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0059dbb0
mov ecx, 0x5f6474
lea edx, [edi*2 + 0x5f6474]
add esp, 0xc
cmp edx, ecx
je 0x4644b2
nop
movzx eax, word [ecx]
cmp ax, word [ebp - 0x128]
jae 0x4645b1
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x11c], 1
cmp ecx, edx
jne 0x464490
mov edx, dword [ebp - 0x120]
lea ecx, [edx + ebx*2]
lea esi, [edx + esi*2]
cmp esi, ecx
jae 0x4644e4
mov ebx, 0x100
movzx eax, word [esi]
cmp ax, bx
jae 0x4644dd
cmp byte [ebp + eax - 0x11c], 0
jne 0x4645f1
add esi, 2
cmp esi, ecx
jb 0x4644c7
mov edi, dword [ebp - 0x124]
mov ecx, dword [edi + 0x10]
mov esi, ecx
cmp ecx, esi
mov dword [ebp - 0x1c], 0
mov eax, esi
mov dword [ebp - 0xc], 0
cmovb eax, ecx
mov dword [ebp - 8], 7
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x464515
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004049aa
cmp dword [ebp - 0xc], 0
je 0x464558
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x464558
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.005adce2
add esp, 4
test eax, eax
jne 0x46460c
mov edx, dword [ebp - 8]
inc esi
cmp edx, 8
jb 0x464593
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x464589
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464655
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov eax, dword [edi + 0x10]
cmp esi, eax
jb 0x464420
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x120]
lea ebx, [eax + ebx*2]
lea esi, [eax + esi*2]
cmp esi, ebx
jae 0x4645e4
mov ecx, edi
mov eax, 0x5f6474
test edi, edi
je 0x4645dd
movzx edx, word [esi]
nop
cmp word [eax], dx
je 0x4645e9
add eax, 2
sub ecx, 1
jne 0x4645d0
add esi, 2
cmp esi, ebx
jb 0x4645c1
or esi, 0xffffffff
jmp 0x4645f5
sub esi, dword [ebp - 0x120]
jmp 0x4645f3
sub esi, edx
sar esi, 1
cmp esi, 0xffffffff
je 0x4644e4
mov edi, dword [ebp - 0x124]
mov ecx, dword [edi + 0x10]
jmp 0x4644ef
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x464642
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x464638
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464655
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
call fcn.005a1930
int3