Function at 0x41ba10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb3a9
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ebx, [edi + 0xc]
push ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.00405030
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [0x53c198]
test eax, eax
jne 0x41baa0
push 0x110
call fcn.004bec3b
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x41ba92
push 0x110
push 0
push esi
call fcn.004c0a60
add esp, 0xc
mov ecx, esi
call fcn.00421000
jmp 0x41ba94
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x53c198], eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00421620
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x41baba
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.0041bc70
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x41bafd
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41baf3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bc5c
push ecx
push edx
call fcn.004bec6b
add esp, 8
mov esi, dword [ebx]
cmp esi, dword [edi + 0x10]
je 0x41bb8e
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41bb12
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401ed0
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bb48
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0041c060
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41bb82
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41bb78
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bc5c
push ecx
push edx
call fcn.004bec6b
add esp, 8
add esi, 0x18
cmp esi, dword [edi + 0x10]
jne 0x41bb08
mov eax, dword [0x53c198]
test eax, eax
jne 0x41bbdb
push 0x110
call fcn.004bec3b
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x41bbcd
push 0x110
push 0
push esi
call fcn.004c0a60
add esp, 0xc
mov ecx, esi
call fcn.00421000
jmp 0x41bbcf
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x53c198], eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.00421620
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 3
jb 0x41bbf5
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.0041bc70
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x41bc2d
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41bc23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bc61
push ecx
push edx
call fcn.004bec6b
add esp, 8
push ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.00405030
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bebdd
mov esp, ebp
pop ebp
ret
call fcn.004c8fd6
call fcn.004c8fd6
int3