Function at 0x427ff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
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 - 0x44], vtable.ATL::CImage.0
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x28], bx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x676b90]
push 0x676b78
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov edi, dword [esi]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x4280c3
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
cmp eax, ebx
je 0x4280a5
cmp byte [eax], bl
je 0x4280a5
push str..doc_.rtf_.xls
push eax
call fcn.0044f9a0
add esp, 8
test al, al
je 0x4280a5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4280c3
lea ecx, [ebp - 0x44]
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 0x1c
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00427070
mov ecx, dword [esi + 0x64]
call fcn.0048df90
test al, al
jne 0x4280a5
mov edx, dword [esi]
cmp dword [edx + 8], 4
mov dword [ebp + 8], ebx
jne 0x428117
movzx eax, word [edi + 0xe]
cmp eax, 0xa
jne 0x428103
mov dword [ebp + 8], 1
jmp 0x428117
push eax
call fcn.0044f000
add esp, 4
test al, al
je 0x428117
mov dword [ebp + 8], 2
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
push ebx
push eax
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.0041ced0
mov ecx, dword [esi + 0x64]
add esp, 0x14
lea eax, [ebp - 0x44]
push eax
call fcn.0048eb50
mov eax, dword [ebp + 0x20]
mov ecx, eax
mov edx, eax
sar ecx, 0x10
shr eax, 0x18
and ecx, 0xff
push ecx
mov ecx, dword [esi + 0x64]
and al, 1
and edx, 0xffff
movzx eax, al
push edx
push eax
call fcn.0048dfa0
xor ecx, ecx
cmp dword [ebp + 8], 2
sete cl
push ecx
mov ecx, dword [esi + 0x64]
call fcn.0048dfc0
cmp dword [ebp + 0xc], ebx
je 0x42817e
lea edi, [esi + 0x24]
jmp 0x42819b
mov edx, dword [esi + 0x9c]
lea ecx, [esi + 0x80]
push edx
call fcn.00569307
cmp eax, ebx
je 0x428199
mov edi, dword [eax + 8]
jmp 0x42819b
xor edi, edi
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
je 0x4281ad
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0xc], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x64]
push eax
call fcn.0048f580
test eax, eax
je 0x428232
mov eax, dword [esi + 0x64]
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
lea eax, [edx + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, eax
add eax, eax
add eax, eax
mov dword [edi + 0x14], eax
lea eax, [ecx + 7]
mov ecx, dword [ebp + 0x14]
cdq
and edx, 7
add eax, edx
mov edx, dword [ebp + 0x10]
sar eax, 3
add eax, eax
push ebx
add eax, eax
push ecx
add eax, eax
push edx
mov ecx, edi
mov dword [edi + 0x1c], eax
call fcn.00427dd0
mov eax, dword [ebp + 0x1c]
mov edi, dword [edi + 0xc]
push eax
push ebx
lea ecx, [ebp - 0x44]
push ecx
push edi
call fcn.004278b0
mov ecx, dword [esi + 0x64]
add esp, 0x10
mov edi, 1
call fcn.0048df80
test al, al
je 0x42822c
or dword [esi + 0x4c], 2
jmp 0x428235
and dword [esi + 0x4c], 0xfffffffd
jmp 0x428235
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.00404d00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c