Function at 0x41e2b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1128
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jne 0x41e2f6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004b5c24
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41e310
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
mov esi, dword [esi + 4]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
cmp esi, ebx
jne 0x41e367
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e34f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
cmp dword [esi + 0x10], 4
mov ecx, dword [esi]
mov dword [ebp - 0x14], ecx
jne 0x41e49a
cmp dword [edi - 0xc], 0
mov ebx, dword [edi - 0x10]
lea eax, [edi - 0x10]
je 0x41e3c6
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x41e3a1
cmp dword [edi - 8], 0
jl 0x41e4a9
mov dword [edi - 0xc], 0
mov byte [edi], 0
jmp 0x41e3c6
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e3b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
movzx eax, word [esi + 0x14]
dec eax
cmp eax, 6
ja case.0x41e3d4.5
jmp dword [eax*4 + 0x41e4b4]
lea edx, [esi + 0x1c]
test edx, edx
jne 0x41e3e9
xor eax, eax
jmp 0x41e479
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e3f0
jmp 0x41e477
lea edx, [esi + 0x1c]
test edx, edx
jne 0x41e404
xor eax, eax
jmp 0x41e479
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e410
jmp 0x41e477
lea edx, [esi + 0x1c]
test edx, edx
jne 0x41e424
xor eax, eax
jmp 0x41e479
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e430
jmp 0x41e477
lea edx, [esi + 0x1c]
test edx, edx
jne 0x41e444
xor eax, eax
jmp 0x41e479
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e450
jmp 0x41e477
lea edx, [esi + 0x1c]
test edx, edx
jne 0x41e464
xor eax, eax
jmp 0x41e479
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e470
sub eax, esi
push eax
push edx
lea ecx, [ebp + 8]
call fcn.00406350
mov edi, dword [ebp + 8]
cmp dword [edi - 0xc], 0
je 0x41e49a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41e49a
inc dword [ebp - 0x10]
cmp dword [ebp - 0x14], 0
jne 0x41e364
jmp 0x41e32c
push 0x80070057
call fcn.004047e0
nop
fninit
inc ecx
add cl, bh
jecxz 0x41e4fc
add byte [ecx], bl
in al, 0x41
add byte [ecx], bh
in al, 0x41
add byte [esi - 0x79ffbe1c], al
in al, 0x41
add byte [ecx - 0x1c], bl
inc ecx
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
invalid