Function at 0x42a3d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dcb79
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
call fcn.004b5c24
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42a41a
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov esi, 1
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], esi
call fcn.004b5c24
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42a450
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
call fcn.004b5c24
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42a47c
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x66d9e8
mov byte [ebp - 4], 2
call fcn.00427da0
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00406510
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42a4cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42a4f7
mov eax, dword [ebx]
cmp dword [eax - 4], esi
jle 0x42a4eb
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, ebx
call fcn.00405c00
mov eax, dword [ebx]
push edi
push eax
call fcn.004804b0
add esp, 8
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, dword [ebx]
cmp dword [edx - 0xc], 0
mov esi, eax
je 0x42a607
cmp edi, esi
jae 0x42a607
mov dword [ebp - 0x14], 0
mov ebx, 1
movzx eax, byte [edi]
push eax
call fcn.005be713
imul eax, ebx
add dword [ebp - 0x14], eax
inc edi
add esp, 4
add ebx, 6
cmp edi, esi
jb 0x42a523
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push str._lx_
push edx
call fcn.004065c0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx - 0xc]
mov ebx, dword [ebp + 8]
add esp, 0xc
push eax
push ecx
mov ecx, ebx
call fcn.00408d70
push 0x2e
push esi
call fcn.005be5d0
add esp, 8
mov edi, eax
push esi
test edi, edi
je 0x42a5ce
lea ecx, [ebp - 0x10]
call fcn.00415540
sub edi, esi
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00423290
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00406510
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a5bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00408d70
jmp 0x42a5d5
mov ecx, ebx
call fcn.00409ea0
cmp dword [ebp + 0x10], 1
mov edx, str..rtf
je 0x42a5e5
mov edx, str..jpg
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a5f0
sub eax, esi
push eax
push edx
mov ecx, ebx
call fcn.00408d70
mov ebx, dword [ebp + 8]
jmp 0x42a60e
mov ecx, ebx
call fcn.00405ef0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a631
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a654
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret