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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4e1654]
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 0x41f629
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f7ce
mov eax, dword [edi + 0x10]
test eax, eax
je 0x41f87b
xor esi, esi
mov dword [ebp - 0x128], pe_nt_image_headers32
mov dword [ebp - 0x12c], 0x5c
mov edi, 0x4b83ec
mov ebx, eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x41f664
mov eax, dword [ebp - 0x124]
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x120], eax
cmp dword [eax + 0x14], 8
jb 0x41f68d
mov eax, dword [eax]
mov dword [ebp - 0x120], eax
test edi, edi
je 0x41f714
cmp esi, ebx
jae 0x41f714
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0048cce0
mov ecx, 0x4b83ec
lea edx, [edi*2 + 0x4b83ec]
add esp, 0xc
cmp edx, ecx
je 0x41f6e2
nop
movzx eax, word [ecx]
cmp ax, word [ebp - 0x128]
jae 0x41f7e1
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x11c], 1
cmp ecx, edx
jne 0x41f6c0
mov edx, dword [ebp - 0x120]
lea ecx, [edx + ebx*2]
lea esi, [edx + esi*2]
cmp esi, ecx
jae 0x41f714
mov ebx, pe_nt_image_headers32
movzx eax, word [esi]
cmp ax, bx
jae 0x41f70d
cmp byte [ebp + eax - 0x11c], 0
jne 0x41f82a
add esi, 2
cmp esi, ecx
jb 0x41f6f7
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 0x41f745
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0041ea60
cmp dword [ebp - 0xc], 0
je 0x41f788
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 0x41f788
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.00492fc0
add esp, 4
test eax, eax
jne 0x41f845
mov edx, dword [ebp - 8]
inc esi
cmp edx, 8
jb 0x41f7c3
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f7b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f88e
push edx
push ecx
call fcn.0048aa81
add esp, 8
mov eax, dword [edi + 0x10]
cmp esi, eax
jb 0x41f65a
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048af00
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 0x41f81d
movzx edx, word [esi]
mov eax, edi
mov ecx, 0x4b83ec
cmp word [ebp - 0x12c], dx
je 0x41f822
cmp eax, 1
je 0x41f816
add ecx, 2
dec eax
cmp word [ecx], dx
jne 0x41f804
test ecx, ecx
jne 0x41f822
add esi, 2
cmp esi, ebx
jb 0x41f7f1
or esi, 0xffffffff
jmp 0x41f82e
sub esi, dword [ebp - 0x120]
jmp 0x41f82c
sub esi, edx
sar esi, 1
cmp esi, 0xffffffff
je 0x41f714
mov edi, dword [ebp - 0x124]
mov ecx, dword [edi + 0x10]
jmp 0x41f71f
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x41f87b
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f871
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f88e
push edx
push ecx
call fcn.0048aa81
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048af00
mov esp, ebp
pop ebp
ret
call fcn.0048f71f
int3