Function at 0x41a210
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4bf3bb
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [0x4ed098]
mov eax, dword [eax - 0xc]
xor edi, edi
cmp eax, edi
jne 0x41a260
xor eax, eax
jmp 0x41a457
mov ecx, dword [0x4ed064]
mov edx, dword [ecx]
push 0x4ed064
mov dword [esp + 0x30], vtable._BaseModule::CAutoLocker.0
mov dword [esp + 0x34], 0x4ed064
call edx
mov dword [esp + 0x108], edi
mov eax, dword [0x4ed098]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41a290
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00480dda
add esi, esi
push esi
mov ebp, eax
push edi
push ebp
call fcn.00482260
add esp, 0x10
shr esi, 1
mov ecx, esi
je 0x41a2e3
cmp ecx, 0x7fffffff
ja 0x41a2e3
mov eax, dword [0x4ed098]
mov edx, ebp
call fcn.00419a90
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebp
call esi
test eax, eax
jne 0x41a300
push edi
push ebp
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebp
call esi
test eax, eax
je 0x41a423
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x1c], ax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xc6
lea eax, [esp + 0x3a]
xor edx, edx
push edi
push eax
mov word [esp + 0x40], dx
call fcn.00482260
movzx ecx, word [esp + 0x30]
movzx edx, word [esp + 0x2e]
movzx eax, word [esp + 0x2c]
push ecx
movzx ecx, word [esp + 0x2e]
push edx
movzx edx, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push ecx
push edx
push eax
push 0x4d3634
lea ecx, [esp + 0x5c]
push 0x400
push ecx
call fcn.00417680
mov edx, dword [0x4ed098]
push 0x4d3674
push edx
call fcn.0048afbc
mov ebx, eax
add esp, 0x38
test ebx, ebx
je 0x41a423
cmp dword [0x4ed09c], 0
mov dword [esp + 0x28], 1
je 0x41a3c9
lea eax, [esp + 0x34]
push eax
push 0x4d3678
push ebx
call fcn.0048b026
add esp, 0xc
mov dword [0x4ed09c], 0
mov eax, dword [0x4ed090]
mov edi, eax
sub edi, dword [0x4ed08c]
xor esi, esi
sar edi, 2
test edi, edi
jle 0x41a410
jmp 0x41a3e6
mov eax, dword [0x4ed090]
sub eax, dword [0x4ed08c]
sar eax, 2
cmp esi, eax
jb 0x41a3f8
call fcn.00482476
mov ecx, dword [0x4ed08c]
mov eax, dword [ecx + esi*4]
push eax
push ebx
call fcn.0048b026
inc esi
add esp, 8
cmp esi, edi
jl 0x41a3e1
push ebx
call fcn.0048b2ce
push ebx
call fcn.004893a2
mov edi, dword [esp + 0x30]
add esp, 8
test ebp, ebp
je 0x41a430
push ebp
call fcn.00482fa8
add esp, 4
mov ecx, 0x4ed060
call fcn.0041a150
mov dword [esp + 0x108], 0xffffffff
mov edx, dword [0x4ed064]
mov eax, dword [edx + 4]
push 0x4ed064
call eax
mov eax, edi
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.004820d9
add esp, 0xf8
ret