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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx]
inc dword [ebx + 0x10]
cmp dword [eax + 4], 0
lea edi, [eax + 0x10]
je 0x459da2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
sub esi, 1
js 0x459d70
cmp word [edi + esi*2], 0x5c
je 0x459d70
sub esi, 1
jns 0x459d64
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x420]
push eax
call edi
test esi, esi
js 0x459d8e
xor eax, eax
mov word [ebp + esi*2 - 0x420], ax
mov eax, dword [ebx]
add eax, 0x10
push eax
lea eax, [ebp - 0x218]
push eax
call edi
jmp 0x459e3a
cmp word [edi], 0
je 0x459dbd
lea edx, [ebp - 0x420]
mov ecx, edi
call fcn.004892b0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x459e19
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
sub esi, 1
js 0x459df5
cmp word [ebp + esi*2 - 0x218], 0x5c
je 0x459df5
sub esi, 1
jns 0x459de5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call edi
test esi, esi
js 0x459e19
xor eax, eax
mov word [ebp + esi*2 - 0x420], ax
push 0x4d52e8
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x4d4c98
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
mov eax, dword [0x4fb114]
add eax, 0x9a0
push eax
call edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x45a013
mov esi, dword [0x4fb114]
lea ecx, [ebp - 0x218]
xor edx, edx
mov dword [ebp - 0x83c], esi
call fcn.004914f0
mov edi, eax
test edi, edi
jne 0x459e8a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], 0
push eax
push edi
mov ecx, esi
call fcn.0048c870
mov ecx, edi
mov esi, eax
call fcn.004915b0
test esi, esi
je 0x45a000
mov eax, dword [ebp - 0x83c]
lea ecx, [ebp - 0x628]
mov dword [eax + 0xba8], 2
mov eax, dword [0x4fb114]
mov dword [ebp - 0x834], eax
call fcn.0048be80
push str.option.dat
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push 0x4d4c98
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x830]
xor edx, edx
call fcn.004914f0
mov edi, eax
test edi, edi
jne 0x459f5e
call fcn.0048cad0
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x459f33
push edi
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x834]
lea ecx, [ecx + 0x5a0]
call fcn.00490230
mov dword [ebx + 0xc], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [ecx + eax]
mov eax, dword [ecx + eax + 4]
mov dword [ebp - 0x83c], eax
lea eax, [ecx + 8]
mov dword [edi + 4], eax
movq xmm0, qword [str.SOPT]
mov dword [ebp - 0x10], edx
movzx eax, dl
movq qword [ebp - 0x10], xmm0
cmp ax, word [ebp - 0x10]
jne 0x459fdc
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 0x10]
shr eax, 0x10
cmp cx, ax
jne 0x459fdc
mov eax, edx
shr eax, 0x10
movzx eax, al
cmp ax, word [ebp - 0xc]
jne 0x459fdc
mov eax, dword [ebp - 0xc]
shr edx, 0x18
shr eax, 0x10
cmp edx, eax
jne 0x459fdc
mov ecx, dword [ebp - 0x834]
mov eax, dword [ebp - 0x83c]
push edi
mov dword [0x4fb110], eax
lea ecx, [ecx + 0x5a0]
call fcn.0048fd80
jmp 0x459ff2
call fcn.0048cad0
mov ecx, dword [ebp - 0x834]
lea ecx, [ecx + 0x5a0]
call fcn.00490230
mov ecx, edi
call fcn.004915b0
mov dword [ebx + 0xc], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.00457fe0
test eax, eax
je 0x45a033
lea eax, [ebx + 0xc]
push eax
push ecx
mov ecx, dword [ebx + 8]
call fcn.004585c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret