Function at 0x40a7e0
Capabilities:
Get file system object information
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1ae88]
mov eax, 0x1ae88
call fcn.0042fc50
push 0xffffffffffffffff
push 0x430ed0
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x43c510]
xor eax, ebp
mov dword [ebp + 0x1ae84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
cmp dword [edi + 4], esi
mov dword [ebp - 0x4c], edi
mov byte [ebp - 0x11], 0
je 0x40a83d
cmp dword [edi + 8], esi
je 0x40a83d
cmp dword [edi + 0xc], esi
jne 0x40a84b
mov dword [edi + 0x1c], 0x80040102
xor al, al
jmp 0x40b1c9
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [edi]
cmp eax, esi
je 0x40b1c6
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x38], esi
mov ecx, dword [eax]
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, esi
mov dword [edi + 0x1c], eax
jl 0x40b1c6
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push esi
push 0x432e4c
push eax
call edx
cmp eax, esi
mov dword [edi + 0x1c], eax
jl 0x40b1bb
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
push edx
push esi
mov dword [ebp - 0x34], esi
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov ecx, dword [ebp - 0x34]
cmp ecx, esi
mov dword [edi + 0x1c], eax
je 0x40b1bb
cmp eax, 0x40380
je 0x40a8d9
cmp eax, esi
jl 0x40a8d9
mov edx, dword [ecx + 0xc]
cmp word [edx + 8], si
setne al
test al, al
jne 0x40a8d9
push ecx
mov ecx, dword [edi + 0x14]
call fcn.00409170
jmp 0x40a892
cmp ecx, esi
je 0x40b1bb
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov eax, dword [edi]
lea ebx, [ebp - 0x24]
push ebx
push 4
xor ebx, ebx
push ebx
push ecx
mov ecx, dword [ebp - 0x50]
push edx
mov dword [ebp - 0x24], esi
mov esi, dword [eax]
mov edx, dword [esi + 0x14]
push ecx
push eax
call edx
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x40b1ab
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x58]
push edx
lea edx, [ebp - 0x8c]
push edx
push ebx
push 0x432ea4
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x40b1a0
cmp eax, 0x40380
je 0x40b192
cmp dword [ebp - 0x8c], 1
jne 0x40b192
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x88], ebx
mov esi, dword [edx]
lea ebx, [ebp - 0x3c]
push ebx
lea ebx, [ebp - 0x88]
push ebx
push 0x10
xor ebx, ebx
push ebx
push eax
push ecx
mov ecx, dword [esi + 0x44]
push edx
call ecx
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x40b192
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push ecx
push ebx
mov dword [ebp - 0x18], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x4c]
push ebx
push eax
call edx
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x40b187
mov eax, dword [edi]
lea edx, [ebp - 0x48]
push edx
xor edx, edx
cmp byte [edi + 0x20], dl
mov dword [ebp - 0x48], ebx
mov ecx, dword [eax]
setne dl
push edx
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x40b074
cmp byte [edi + 0x20], bl
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x48]
sete cl
push ecx
push edx
push eax
mov ecx, edi
call fcn.0040a070
test al, al
je 0x40b067
mov esi, dword [edi + 0x28]
cmp esi, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], esi
je 0x40ab08
xor eax, eax
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x84]
push edx
mov dword [ebp - 0x84], 0x1000001f
mov dword [ebp - 0x7c], esi
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, ebx
mov edx, dword [ebp - 0x30]
mov dword [edi + 0x1c], eax
jl 0x40aaf7
cmp edx, ebx
je 0x40ab08
xor ecx, ecx
lea ebx, [ebx]
cmp ecx, dword [edx]
jae 0x40aaf7
lea eax, [ecx + ecx*2]
cmp dword [edx + eax*4 + 0xc], 0x80040103
mov ebx, dword [edx + eax*4 + 4]
lea eax, [edx + eax*4 + 4]
mov dword [ebp - 0x9c], ebx
mov ebx, dword [eax + 4]
mov dword [ebp - 0x98], ebx
jne 0x40af18
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
mov dword [ebp - 0x84], 0x1000001e
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x40aaf4
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, dword [ebp - 0x20]
add esp, 4
push 0
push 0
push esi
mov ebx, eax
push ebx
push esi
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40aae6
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x84]
push ecx
mov dword [ebp - 0x7c], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push 1
push eax
call edx
mov dword [edi + 0x1c], eax
test ebx, ebx
je 0x40aaf4
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov edx, dword [ebp - 0x30]
xor ebx, ebx
cmp edx, ebx
je 0x40ab08
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 8]
call edx
mov esi, dword [edi + 0x2c]
cmp esi, ebx
mov dword [ebp - 0x20], esi
je 0x40ac0a
xor eax, eax
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x74], 0x37001f
mov dword [ebp - 0x6c], esi
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x40abf6
mov edx, dword [ebp - 0x44]
cmp edx, ebx
je 0x40ac0a
xor ecx, ecx
cmp ecx, dword [edx]
jae 0x40abf9
lea eax, [ecx + ecx*2]
cmp dword [edx + eax*4 + 0xc], 0x80040103
mov ebx, dword [edx + eax*4 + 4]
lea eax, [edx + eax*4 + 4]
mov dword [ebp - 0x9c], ebx
mov ebx, dword [eax + 4]
mov dword [ebp - 0x98], ebx
jne 0x40af20
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
mov dword [ebp - 0x74], 0x37001e
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x40abf6
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, dword [ebp - 0x20]
add esp, 4
push 0
push 0
push esi
mov ebx, eax
push ebx
push esi
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40abe8
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x74]
push ecx
mov dword [ebp - 0x6c], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push 1
push eax
call edx
mov dword [edi + 0x1c], eax
test ebx, ebx
je 0x40abf6
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov edx, dword [ebp - 0x44]
xor ebx, ebx
cmp edx, ebx
je 0x40ac0a
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 8]
call edx
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x40affa
push eax
lea eax, [ebp + 0x2b4]
push 0xcbe8
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp + 0x2b4]
push 0x432ea0
push edx
call dword [sym.imp.MSVCR80.dll_wcstok_s]
add esp, 0x18
mov dword [ebp - 0x90], ebx
mov esi, eax
xor eax, eax
cmp eax, 0xc8
mov dword [ebp - 0x20], esi
jge 0x40affa
cmp esi, ebx
je 0x40affa
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x90]
push edx
push ebx
mov dword [ebp - 0x28], ebx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x40]
call eax
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x40afdf
push 0x30
lea ecx, [ebp - 0xe4]
push ebx
push ecx
call sub.MSVCR80.dll_memset
push 0x100
lea edx, [ebp + 0x1aa84]
push edx
push 0x100
lea eax, [ebp + 0x1ac84]
push eax
push ebx
push ebx
push ebx
push ebx
push esi
mov dword [ebp - 0xe4], 0x37050003
mov dword [ebp - 0xdc], 1
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xbc], ebx
call dword [sym.imp.MSVCR80.dll__wsplitpath_s]
lea ecx, [ebp + 0x1aa84]
push ecx
lea edx, [ebp + 0x1ac84]
push 0x100
push edx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x2b0
lea ecx, [ebp + 4]
lea eax, [ebp + 0x1ac84]
push ebx
push ecx
mov dword [ebp - 0xd4], 0x3704001f
mov dword [ebp - 0xcc], eax
mov dword [ebp], ebx
call sub.MSVCR80.dll_memset
add esp, 0x48
push 0x200
push 0x2b4
lea edx, [ebp]
push edx
push 0xd0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40ad51
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc4], 0x3001001f
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x5c]
push edx
lea edx, [ebp - 0xe4]
push edx
push 3
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x40aeaa
mov edx, dword [ebp - 0x5c]
cmp edx, ebx
je 0x40aec4
xor ecx, ecx
mov esi, 0x80040103
cmp ecx, dword [edx]
jae 0x40aeaa
lea eax, [ecx + ecx*2]
cmp dword [edx + eax*4 + 0xc], esi
mov edi, dword [edx + eax*4 + 4]
lea eax, [edx + eax*4 + 4]
mov dword [ebp - 0x9c], edi
mov edi, dword [eax + 4]
mov dword [ebp - 0x98], edi
jne 0x40af28
mov eax, dword [ebp - 0xcc]
xor edi, edi
xor ebx, ebx
xor esi, esi
cmp eax, edi
mov dword [ebp - 0x40], edi
je 0x40ae0c
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push eax
push esi
push esi
mov dword [ebp - 0xd4], 0x3704001e
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x40ae0c
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, dword [ebp - 0xcc]
add esp, 4
push edi
push edi
push esi
mov ebx, eax
push ebx
push esi
push ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov dword [ebp - 0xcc], ebx
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x40ae6b
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov dword [ebp - 0xc4], 0x3001001e
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40ae6b
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov edx, dword [ebp - 0xbc]
add esp, 4
push 0
push 0
push edi
push eax
push edi
push edx
push 0
push 0
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xbc], eax
test esi, esi
je 0x40ae89
test edi, edi
je 0x40ae89
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0xe4]
push edx
push 3
push eax
mov eax, dword [ecx + 0x20]
call eax
test ebx, ebx
je 0x40ae97
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
cmp dword [ebp - 0x40], 0
je 0x40aeaa
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x4c]
xor ebx, ebx
cmp eax, ebx
je 0x40aec1
mov ecx, dword [edi + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 8]
call eax
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 3
push 1
push 0x433548
push 0x37010102
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x40afc6
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40af30
mov dword [edi + 0x1c], 0x80044005
jmp 0x40afa7
add ecx, 1
jmp 0x40aa50
add ecx, 1
jmp 0x40ab58
add ecx, 1
jmp 0x40ad86
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x60], eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0x1000
lea edx, [ebp + 0x19a84]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40afa0
cmp dword [ebp - 0x2c], 0
je 0x40afa0
lea esi, [ebp + 0x19a84]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x60]
push edx
mov edx, dword [ebp - 0x2c]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x40af86
mov dword [edi + 0x1c], 0x80044005
cmp dword [edi + 0x1c], 0
jl 0x40afa0
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
add esi, eax
test ecx, ecx
mov dword [ebp - 0x2c], ecx
ja 0x40af61
cmp dword [edi + 0x1c], 0
jge 0x40af38
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push 0
push eax
call edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
xor ebx, ebx
push ebx
push eax
call edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0xa0]
push eax
push 0x432ea0
push ebx
call dword [sym.imp.MSVCR80.dll_wcstok_s]
add esp, 0xc
jmp 0x40ac4a
xor eax, eax
push ebx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xf4]
push edx
mov dword [ebp - 0xf4], 0x1a001f
mov dword [ebp - 0xec], str.IPM.Note
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x20]
call eax
mov dword [edi + 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40b060
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
push 0
push eax
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [ebp - 0x4c]
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor ebx, ebx
cmp dword [edi + 0x1c], ebx
jl 0x40b17c
cmp byte [edi + 0x20], 0
jne 0x40b0e6
mov eax, dword [edi]
lea edx, [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x18]
push edx
mov dword [ebp - 0x54], ebx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x54]
call eax
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x40b0dd
mov edx, dword [ebp - 0x54]
mov eax, dword [edi]
push 0x432e80
mov ecx, dword [eax]
push 1
push 8
push ebx
push 2
push ebx
push edx
mov edx, dword [ebp - 0x3c]
push ebx
push edx
mov edx, dword [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x50]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov dword [edi + 0x1c], eax
jmp 0x40b17c
mov byte [ebp - 0x11], 0
jmp 0x40b17c
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x64]
push edx
lea edx, [ebp - 0xa4]
push edx
push ebx
push 0x432e78
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x40b16f
cmp eax, 0x40380
je 0x40b161
cmp dword [ebp - 0xa4], 1
jne 0x40b161
xor eax, eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xb4], 0xe0a0102
mov ecx, dword [eax + 8]
mov dword [ebp - 0xac], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa8], edx
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0xb4]
push edx
push 1
push eax
mov eax, dword [ecx + 0x20]
call eax
mov ecx, dword [edi + 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x64]
mov edx, dword [edx + 8]
push eax
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push 1
push eax
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x58]
mov eax, dword [eax + 8]
push edx
call eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x40b1bb
mov ecx, dword [edi + 0x14]
push eax
call fcn.00409170
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1ae84]
xor ecx, ebp
call fcn.0042fc34
add ebp, 0x1ae88
mov esp, ebp
pop ebp
ret