Function at 0x42c430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dcc98
mov eax, dword fs:[0]
push eax
sub esp, 0x48
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, ecx
xor ebx, ebx
or eax, 0xffffffff
push 0x676b78
mov dword [ebp - 0x54], vtable.ATL::CImage.0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x38], bx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x676b90]
push 0x676b78
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
cmp eax, ebx
je 0x42c614
cmp byte [eax], bl
je 0x42c614
push str..doc_.rtf_.xls
push eax
call fcn.0044f9a0
add esp, 8
test al, al
je 0x42c614
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42c614
lea ecx, [esi + 0x68]
call fcn.004a7c10
test al, al
je 0x42c530
push ecx
mov eax, edi
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00406c70
lea ecx, [esi + 0x68]
call fcn.004a7e20
cmp al, bl
jne 0x42c530
lea ecx, [ebp - 0x54]
call fcn.00404d00
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 0x18
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [esi + 0x68]
call fcn.004a7c20
mov edi, dword [esi + 0x20]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax]
imul edi, ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
cmp edi, eax
jge 0x42c512
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00427070
mov eax, dword [ebp + 0xc]
push eax
mov ecx, esi
call fcn.00427040
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push ecx
mov ecx, eax
mov dword [ebp + 8], eax
call fcn.00427dd0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edi
push edx
push eax
lea ecx, [ebp - 0x54]
push ecx
lea eax, [esi + 0x68]
push eax
call fcn.004274d0
add esp, 0x14
test eax, eax
je 0x42c614
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebp + 8], ecx
cmp ecx, ebx
je 0x42c5f7
cmp dword [ecx + 4], ebx
je 0x42c5f7
cmp dword [ebp - 0x50], ebx
je 0x42c5f7
call fcn.00404960
push 3
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
movzx eax, byte [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 0xff66ffe8
add eax, 0xcc0020
push eax
push ebx
push ebx
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040b2c0
mov ecx, dword [ebp + 8]
call fcn.004049c0
add edi, dword [ebp + 0x14]
mov eax, 1
add dword [esi + 0x20], eax
mov dword [ebp - 0x10], eax
cmp edi, dword [ebp - 0x14]
jl 0x42c610
or dword [esi + 0x4c], 2
jmp 0x42c614
and dword [esi + 0x4c], 0xfffffffd
lea ecx, [ebp - 0x54]
call fcn.00404d00
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 0x18