Function at 0x10042b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10087e8a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x310c
call fcn.100790e0
mov eax, dword [0x100a5c90]
xor eax, esp
mov dword [esp + 0x3108], eax
push ebx
push esi
push edi
mov eax, dword [0x100a5c90]
xor eax, esp
push eax
lea eax, [esp + 0x3120]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x1c]
xor edi, edi
mov dword [esp + 0x30], eax
mov eax, dword [0x100a6d3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x1004315a
cmp eax, 1
je 0x10042be3
call fcn.1000f210
xor ecx, ecx
cmp eax, 2
sete cl
cmp ecx, edi
je 0x10042c12
mov dword [0x100a6d3c], 1
mov esi, dword [0x100aa1c0]
cmp esi, edi
jne 0x10042c32
push 0x1e8
call fcn.10067232
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x3128], edi
cmp eax, edi
je 0x10042c1d
mov ecx, eax
call fcn.10011d60
jmp 0x10042c1f
mov dword [0x100a6d3c], edi
jmp 0x1004315a
xor eax, eax
mov esi, eax
mov dword [esp + 0x3128], 0xffffffff
mov dword [0x100aa1c0], esi
mov eax, dword [esi + 0x1a4]
lea ecx, [esi + 0x194]
push 0x10093318
mov edi, 2
call fcn.10004240
test eax, eax
je 0x10042c8a
call fcn.10001170
lea ecx, [eax + 0x194]
mov eax, dword [ecx + 0x10]
push 0x10093310
mov edi, 3
call fcn.10004240
test eax, eax
je 0x10042c84
call fcn.10001170
call fcn.10012c80
test eax, eax
je 0x1004315a
mov esi, dword [0x100aa1c0]
test esi, esi
jne 0x10042ccc
push 0x1e8
call fcn.10067232
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x3128], 1
test eax, eax
je 0x10042cb7
mov ecx, eax
call fcn.10011d60
jmp 0x10042cb9
xor eax, eax
mov esi, eax
mov dword [esp + 0x3128], 0xffffffff
mov dword [0x100aa1c0], esi
mov eax, esi
call fcn.10012c30
test eax, eax
je 0x10042d6f
cmp dword [0x100aa290], 0
jne 0x10042d6f
lea edx, [esp + 0x34]
push edx
call fcn.10034300
mov esi, dword [esp + 0x10]
mov ecx, esi
lea edx, [esp + 0x34]
mov dword [esp + 0x3128], 2
call fcn.10034cf0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10042d66
shr eax, 4
not eax
and eax, 1
je 0x10042d66
lea ecx, [esp + 0x34]
call fcn.10034ee0
test eax, eax
jne 0x10042d66
cmp dword [0x100aa278], eax
jne 0x10042d66
lea esi, [esp + 0x494]
call fcn.1002fd90
push 0
mov ecx, esi
mov byte [esp + 0x312c], 3
call fcn.10032bd0
push 0
push ebx
mov ecx, esi
call fcn.100309b0
mov dword [esp + 0x1c], 1
lea esi, [esp + 0x34]
jmp 0x1004314a
call fcn.10001170
lea ecx, [eax + 0x194]
mov eax, dword [ecx + 0x10]
push str.winword
mov edi, 7
call fcn.10004240
test eax, eax
jne 0x10042f61
mov eax, dword [0x100a70b4]
mov ebx, 8
cmp dword [0x100a70c8], ebx
jae 0x10042dab
mov eax, 0x100a70b4
push eax
lea eax, [esp + 0x2118]
push 0x10095894
push eax
mov edx, 0x800
call fcn.1004b9b0
add esp, 0xc
lea ecx, [esp + 0xcb4]
push ecx
call fcn.10034300
mov dword [esp + 0x3128], 4
mov ecx, dword [0x100a70b4]
cmp dword [0x100a70c8], ebx
jae 0x10042df1
mov ecx, 0x100a70b4
lea edx, [esp + 0xcb4]
call fcn.10034cf0
mov eax, dword [0x100a70b4]
cmp dword [0x100a70c8], ebx
jae 0x10042e0f
mov eax, 0x100a70b4
push eax
mov eax, 0x10096a30
call fcn.100263b0
add esp, 4
test eax, eax
je 0x10042e67
lea esi, [esp + 0x494]
call fcn.1002fd90
push 0
mov ecx, esi
mov byte [esp + 0x312c], 5
call fcn.10032bd0
mov eax, dword [0x100a70b4]
cmp dword [0x100a70c8], ebx
jae 0x10042e50
mov eax, 0x100a70b4
push 0
push eax
lea ecx, [esp + 0x49c]
call fcn.100309b0
mov byte [esp + 0x3128], 4
lea edi, [esp + 0x1114]
lea esi, [esp + 0x2114]
call fcn.10042a60
push 0x800
mov edx, esi
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x10042ea7
mov ecx, esi
push ecx
mov edx, edi
push 0x10095894
push edx
mov edx, 0x800
call fcn.1004b9b0
add esp, 0xc
lea ecx, [esp + 0x1114]
lea edx, [esp + 0xcb4]
call fcn.10034cf0
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0xcd0]
cmp cl, byte [eax + 0x10091754]
jne 0x10042ee1
inc eax
cmp eax, 9
jl 0x10042ec0
lea esi, [esp + 0xcb4]
jmp 0x1004314a
lea eax, [esp + 0x1114]
lea edx, [eax + 2]
jmp 0x10042ef0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10042ef0
sub eax, edx
sar eax, 1
je 0x10042f55
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x1118]
call fcn.100263b0
add esp, 4
test eax, eax
je 0x10042f55
cmp dword [0x100aa278], 0
jne 0x10042f55
lea esi, [esp + 0x494]
call fcn.1002fd90
push 0
mov ecx, esi
mov byte [esp + 0x312c], 6
call fcn.10032bd0
mov eax, dword [esp + 0x20]
push 0
push eax
mov ecx, esi
call fcn.100309b0
mov dword [esp + 0x1c], 1
lea esi, [esp + 0xcb4]
jmp 0x1004314a
call fcn.10001170
lea ecx, [eax + 0x194]
mov eax, dword [ecx + 0x10]
push 0x10093310
mov edi, 3
call fcn.10004240
test eax, eax
jne 0x10043073
lea ecx, [esp + 0xee4]
push ecx
call fcn.10034300
mov ecx, ebx
lea edx, [esp + 0xee4]
mov dword [esp + 0x3128], 7
call fcn.10034cf0
lea ecx, [esp + 0xee4]
call fcn.10034ee0
test eax, eax
je 0x10043067
lea edx, [esp + 0x34]
push edx
call fcn.10034300
mov ebx, 8
mov byte [esp + 0x3128], bl
mov ecx, dword [0x100a70b4]
cmp dword [0x100a70c8], ebx
jae 0x10042fe9
mov ecx, 0x100a70b4
lea edx, [esp + 0x34]
call fcn.10034cf0
lea ecx, [esp + 0x34]
call fcn.10034ee0
test eax, eax
jne 0x1004305e
mov eax, dword [0x100a70b4]
cmp dword [0x100a70c8], ebx
jae 0x10043011
mov eax, 0x100a70b4
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100263b0
add esp, 4
test eax, eax
je 0x1004305e
cmp dword [0x100aa278], 0
jne 0x1004305e
lea esi, [esp + 0x494]
call fcn.1002fd90
push 0
mov ecx, esi
mov byte [esp + 0x312c], 9
call fcn.10032bd0
mov edx, dword [esp + 0x20]
push 0
push edx
mov ecx, esi
call fcn.100309b0
mov dword [esp + 0x1c], 1
lea esi, [esp + 0x34]
call fcn.10034420
lea esi, [esp + 0xee4]
jmp 0x1004314a
call fcn.10001170
lea ecx, [eax + 0x194]
mov eax, dword [ecx + 0x10]
push 0x10093318
mov edi, 2
call fcn.10004240
test eax, eax
jne 0x1004315a
lea eax, [esp + 0x264]
push eax
call fcn.10034300
mov dword [esp + 0x3128], 0xa
mov ecx, dword [0x100a70b4]
mov ebx, 8
cmp dword [0x100a70c8], ebx
jae 0x100430c8
mov ecx, 0x100a70b4
lea edx, [esp + 0x264]
call fcn.10034cf0
lea ecx, [esp + 0x264]
call fcn.10034ee0
test eax, eax
jne 0x10043143
mov eax, dword [0x100a70b4]
cmp dword [0x100a70c8], ebx
jae 0x100430f6
mov eax, 0x100a70b4
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100263b0
add esp, 4
test eax, eax
je 0x10043143
cmp dword [0x100aa278], 0
jne 0x10043143
lea esi, [esp + 0x494]
call fcn.1002fd90
push 0
mov ecx, esi
mov byte [esp + 0x312c], 0xb
call fcn.10032bd0
mov edx, dword [esp + 0x20]
push 0
push edx
mov ecx, esi
call fcn.100309b0
mov dword [esp + 0x1c], 1
lea esi, [esp + 0x264]
mov dword [esp + 0x3128], 0xffffffff
call fcn.10034420
mov esi, dword [0x100aa1c0]
test esi, esi
jne 0x100431a2
push 0x1e8
call fcn.10067232
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x3128], 0xc
test eax, eax
je 0x1004318d
mov ecx, eax
call fcn.10011d60
jmp 0x1004318f
xor eax, eax
mov esi, eax
mov dword [esp + 0x3128], 0xffffffff
mov dword [0x100aa1c0], esi
mov eax, dword [esi + 0x1a4]
lea ecx, [esi + 0x194]
push 0x10093318
mov edi, 2
call fcn.10004240
test eax, eax
je 0x10043249
test esi, esi
jne 0x10043207
push 0x1e8
call fcn.10067232
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x3128], 0xd
test eax, eax
je 0x100431f2
mov ecx, eax
call fcn.10011d60
jmp 0x100431f4
xor eax, eax
mov esi, eax
mov dword [esp + 0x3128], 0xffffffff
mov dword [0x100aa1c0], esi
mov eax, dword [esi + 0x1a4]
push str.excel
mov edi, 5
lea ecx, [esi + 0x194]
call fcn.10004240
test eax, eax
je 0x10043249
mov eax, dword [esi + 0x1a4]
push str.excel2007
mov edi, 9
lea ecx, [esi + 0x194]
call fcn.10004240
test eax, eax
je 0x10043249
xor esi, esi
jmp 0x1004324e
mov esi, 1
mov eax, dword [0x100a6d3c]
test eax, eax
je 0x1004327a
cmp eax, 1
jne 0x1004325e
jmp 0x1004327a
call fcn.1000f210
xor ecx, ecx
cmp eax, 2
sete cl
xor edx, edx
mov eax, ecx
test eax, eax
setne dl
mov dword [0x100a6d3c], edx
test esi, eax
je 0x100432f6
lea eax, [esp + 0x264]
push eax
call fcn.10034300
mov esi, dword [esp + 0x10]
mov ecx, esi
lea edx, [esp + 0x264]
mov dword [esp + 0x3128], 0xe
call fcn.10034cf0
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x280]
cmp cl, byte [eax + 0x10091754]
jne 0x100432df
inc eax
cmp eax, 9
jl 0x100432b0
push esi
mov eax, str..xls
call fcn.100263b0
add esp, 4
test eax, eax
je 0x100432df
mov dword [esp + 0x18], 1
lea esi, [esp + 0x264]
mov dword [esp + 0x3128], 0xffffffff
call fcn.10034420
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call dword [0x100ac764]
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x10043513
mov eax, dword [0x100a6d3c]
test eax, eax
je 0x1004334e
cmp eax, 1
je 0x1004339a
call fcn.1000f210
xor edx, edx
cmp eax, 2
sete dl
mov eax, edx
test eax, eax
jne 0x10043390
mov dword [0x100a6d3c], edx
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
call fcn.1002b1b0
test eax, eax
je 0x10043367
mov dword [esp + 0x18], 1
mov eax, dword [0x100a6d3c]
test eax, eax
je 0x100434d7
cmp eax, 1
je 0x1004339a
call fcn.1000f210
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
test eax, eax
je 0x1004353b
mov eax, 1
mov dword [0x100a6d3c], eax
mov ecx, dword [0x100aa2b0]
test ecx, ecx
jne 0x100433e8
push 0x24
call fcn.10067232
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x3128], 0xf
test eax, eax
je 0x100433ce
mov ebx, eax
call fcn.10052920
mov ebx, dword [esp + 0x24]
jmp 0x100433d0
xor eax, eax
mov ecx, eax
mov dword [esp + 0x3128], 0xffffffff
mov eax, dword [0x100a6d3c]
mov dword [0x100aa2b0], ecx
cmp dword [ecx], 0
mov edi, dword [esp + 0x28]
je 0x1004340b
mov ecx, dword [esp + 0x20]
call fcn.10052cb0
test eax, eax
mov eax, dword [0x100a6d3c]
je 0x1004340b
mov dword [esp + 0x18], 1
test eax, eax
je 0x100434d7
cmp eax, 1
je 0x10043439
call fcn.1000f210
xor edx, edx
cmp eax, 2
sete dl
mov eax, edx
test eax, eax
je 0x1004353b
mov dword [0x100a6d3c], 1
cmp dword [edi + 0x858], 0
je 0x1004349f
mov esi, dword [esp + 0x10]
push esi
mov ecx, edi
call fcn.1002ab40
test eax, eax
jne 0x10043468
lea edx, [edi + 4]
mov ecx, esi
call fcn.1002ee90
test eax, eax
je 0x10043470
movzx eax, byte [eax + 1]
test eax, eax
je 0x10043470
mov dword [esp + 0x18], 1
mov eax, dword [0x100a6d3c]
test eax, eax
je 0x100434d7
cmp eax, 1
je 0x1004349f
call fcn.1000f210
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
test eax, eax
je 0x1004353b
mov dword [0x100a6d3c], 1
call fcn.1005cdb0
mov esi, eax
call fcn.1005ceb0
test eax, eax
je 0x100434d7
mov edx, dword [esp + 0x10]
push edx
mov ecx, edi
call fcn.1002ab40
test eax, eax
jne 0x100434de
mov ecx, dword [esp + 0x10]
lea edx, [edi + 4]
call fcn.1002ee90
test eax, eax
je 0x100434d7
movzx eax, byte [eax + 1]
test eax, eax
jne 0x100434de
cmp dword [esp + 0x18], 0
je 0x10043513
cmp dword [esp + 0x1c], 0
jne 0x10043513
lea esi, [esp + 0x494]
call fcn.1002fd90
push 0
mov ecx, esi
mov dword [esp + 0x312c], 0x10
call fcn.10032bd0
mov eax, dword [esp + 0x10]
push 0
push eax
mov ecx, esi
call fcn.100300c0
mov eax, ebx
mov ecx, dword [esp + 0x3120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3108]
xor ecx, esp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 0x18
mov dword [0x100a6d3c], 0
jmp 0x100434d7