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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9d57
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x104], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x108], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0xd0]
push eax
mov ecx, esi
call fcn.0048e1e0
push 4
push 0
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00451828
mov esi, eax
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x100]
push eax
mov byte [ebp - 4], 1
call fcn.0048c450
push esi
push eax
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 4], 2
call fcn.0047f7e0
add esp, 0xc
mov byte [ebp - 4], 3
test eax, eax
je 0x492fb0
add eax, 4
jmp 0x492fb2
xor eax, eax
mov ecx, dword [ebp - 0x104]
add ecx, 4
cmp ecx, eax
je 0x492fc9
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b10
mov eax, dword [ebp - 0x78]
lea esi, [ebp - 0x78]
mov eax, dword [eax + 4]
add esi, eax
call ebx
mov dword [esi], eax
push dword [ebp - 0x84]
call fcn.0045973a
add esp, 4
push dword [ebp - 0x7c]
call edi
cmp dword [ebp - 0x88], 8
jb 0x492ffc
push dword [ebp - 0x9c]
call edi
xor eax, eax
mov word [ebp - 0x9c], ax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0xa0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xd8]
lea esi, [ebp - 0xd8]
mov eax, dword [eax + 4]
add esi, eax
call ebx
mov dword [esi], eax
push dword [ebp - 0xe4]
call fcn.0045973a
add esp, 4
push dword [ebp - 0xdc]
call edi
cmp dword [ebp - 0xe8], 8
jb 0x49306b
push dword [ebp - 0xfc]
call edi
xor eax, eax
mov word [ebp - 0xfc], ax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xe8], 7
mov dword [ebp - 0xec], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x100]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x48]
lea esi, [ebp - 0x48]
mov eax, dword [eax + 4]
add esi, eax
call ebx
mov dword [esi], eax
push dword [ebp - 0x54]
call fcn.0045973a
add esp, 4
push dword [ebp - 0x4c]
call edi
cmp dword [ebp - 0x58], 8
jb 0x4930c8
push dword [ebp - 0x6c]
call edi
xor eax, eax
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x70]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xa8]
lea esi, [ebp - 0xa8]
mov eax, dword [eax + 4]
add esi, eax
call ebx
mov dword [esi], eax
push dword [ebp - 0xb4]
call fcn.0045973a
add esp, 4
push dword [ebp - 0xac]
call edi
cmp dword [ebp - 0xb8], 8
jb 0x493128
push dword [ebp - 0xcc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov word [ebp - 0xcc], ax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xb8], 7
mov dword [ebp - 0xbc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0xd0]
call esi
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call ebx
mov dword [ebp - 0x14], eax
xor eax, eax
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x18]
call esi
push 0x104
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 4
call fcn.0048efb0
mov ebx, dword [eax]
mov byte [eax + 4], 1
push dword [ebx + 0x24]
mov esi, dword [ebx + 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp esi, eax
je 0x4931e5
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x4931d5
mov eax, dword [eax]
push dword [ebx + 0x14]
lea esi, [ebx + 0x24]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
jmp 0x493221
mov eax, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
mov dword [ebp - 0x114], eax
test eax, eax
je 0x493221
mov edx, dword [ebx + 0x14]
cmp dword [ebx + 0x14], edx
lea ecx, [ebx + 4]
cmovb edx, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 8
jb 0x49320a
mov ecx, dword [ecx]
test edx, edx
je 0x493221
push edx
push ecx
push dword [ebx + 0x14]
push dword [ebp - 0x114]
call fcn.0045a742
add esp, 0x10
mov ecx, dword [esi]
test ecx, ecx
je 0x493230
mov eax, dword [ebx + 0x14]
xor edx, edx
mov word [ecx + eax*2], dx
mov ebx, dword [ebp - 0x110]
movzx eax, bx
push eax
push 0x4bb024
push dword [esi]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 4
call fcn.00485bd0
mov esi, dword [ebp - 0x104]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [esi + 4]
call fcn.0040d8d9
mov ecx, esi
call fcn.0040b7bf
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x18]
mov eax, dword [eax + 4]
je 0x49337b
inc ebx
mov dword [ebp - 0x110], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xffffffff
add esi, eax
call ebx
mov dword [esi], eax
push dword [ebp - 0x24]
call fcn.0045973a
add esp, 4
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x28], 8
jb 0x4932c4
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x40]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x10c], eax
cmp eax, 0xffff
jl 0x492f52
lea ecx, [ebp - 0x130]
call fcn.0045b435
push 4
mov dword [ebp - 4], 6
mov dword [ebp - method.is::win32_exception.virtual_0], vtable.is::win32_exception.0
mov dword [ebp - 0x124], 0x50
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x11c], 0
call fcn.00459406
add esp, 4
test eax, eax
je 0x493359
mov dword [eax], 1
mov dword [ebp - 0x118], eax
jmp 0x493363
mov dword [ebp - 0x118], 0
push 0x4c4f08
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.004591e6
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x24]
call fcn.0045973a
add esp, 4
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x28], 8
jb 0x4933a0
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x40]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004591d7
mov esp, ebp
pop ebp
ret 4