Function at 0x489e40
Capabilities:
Get file system object information
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ca896
mov eax, dword fs:[0]
push eax
mov eax, 0x1328
call fcn.00490990
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x1324], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x133c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x6c]
xor ebx, ebx
mov dword [esp + 0x28], edi
cmp eax, ebx
jne 0x489e95
xor eax, eax
jmp 0x48a2ab
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
push 1
xor eax, eax
push 0x4e8e1c
lea ecx, [esp + 0x50]
mov dword [esp + 0x134c], ebx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], ax
call fcn.00401cd6
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [edi + 0x58]
push eax
mov byte [esp + 0x1350], 1
call fcn.00445810
add esp, 0xc
cmp dword [esp + 0x60], 8
mov esi, eax
mov byte [esp + 0x1344], 0
jb 0x489f07
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0048e006
add esp, 4
cmp esi, ebx
jbe 0x48a27c
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x40], esi
lea esp, [esp]
mov edx, dword [esp + 0x34]
cmp dword [edx + ebp + 0x14], ebx
je 0x48a26a
mov eax, dword [edi + 0xf4]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x48]
push edx
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x50], 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 0x48a108
cmp dword [esp + 0x14], ebx
je 0x48a108
push 0x30
lea ecx, [esp + 0x4c]
push ebx
push ecx
call fcn.0048e760
mov eax, dword [esp + 0x40]
mov esi, 8
add esp, 0xc
mov dword [esp + 0x48], 0x37050003
mov dword [esp + 0x50], 1
mov dword [esp + 0x60], ebx
mov dword [esp + 0x70], ebx
cmp dword [eax + ebp + 0x18], esi
jb 0x489fa2
mov eax, dword [eax + ebp + 4]
jmp 0x489fa6
lea eax, [eax + ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
je 0x489fbd
mov dword [esp + 0x58], 0x3704001f
mov dword [esp + 0x60], eax
push 0x2b0
lea edx, [esp + 0x8c]
push ebx
push edx
mov dword [esp + 0x90], ebx
call fcn.0048e760
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp dword [eax + ebp + 0x18], esi
jb 0x489fea
mov eax, dword [eax + ebp + 4]
jmp 0x489fee
lea eax, [eax + ebp + 4]
push 0x200
push 0x2b4
lea ecx, [esp + 0x8c]
push ecx
push 0xd0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x48a023
lea edx, [esp + 0x90]
mov dword [esp + 0x68], 0x3001001f
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push 3
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x48a108
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x48a108
cmp dword [eax], ebx
jbe 0x48a0fa
xor ebp, ebp
cmp dword [eax + ebp + 0xc], 0x80040103
mov ecx, dword [eax + ebp + 4]
mov edx, dword [eax + ebp + 8]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
jne 0x48a0e4
mov eax, dword [esp + 0x60]
push eax
call fcn.0048b8c0
mov ecx, dword [esp + 0x74]
push ecx
mov edi, eax
call fcn.0048b8c0
add esp, 8
mov esi, eax
test edi, edi
je 0x48a0d3
test esi, esi
je 0x48a0ca
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x60], 0x3704001e
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], 0x3001001e
mov dword [esp + 0x78], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push 3
push eax
call edx
push edi
call fcn.0049042c
add esp, 4
test esi, esi
je 0x48a0e0
push esi
call fcn.0049042c
add esp, 4
mov eax, dword [esp + 0x24]
inc ebx
add ebp, 0xc
cmp ebx, dword [eax]
jb 0x48a060
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov ecx, dword [edi + 0xc8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 3
push 1
push 0x4f6a70
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push 0x37010102
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, ebx
mov dword [edi + 0x1c], eax
jl 0x48a251
cmp dword [esp + 0x18], ebx
je 0x48a251
mov eax, dword [esp + 0x34]
cmp dword [eax + ebp + 0x18], 8
jb 0x48a151
mov eax, dword [eax + ebp + 4]
jmp 0x48a155
lea eax, [eax + ebp + 4]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48a183
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x1c], 0x8004000c
jmp 0x48a230
push ebx
lea edx, [esp + 0x20]
push edx
push 0x1000
lea eax, [esp + 0x344]
push eax
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48a229
lea ecx, [ecx]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x48a229
lea esi, [esp + 0x338]
nop
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
lea ebp, [esp + 0x2c]
push ebp
push ecx
push esi
push eax
mov eax, dword [edx + 0x10]
call eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x1c], eax
cmp edx, ebx
je 0x48a21e
cmp eax, ebx
jl 0x48a225
mov ecx, dword [esp + 0x1c]
sub ecx, edx
add esi, edx
mov dword [esp + 0x1c], ecx
cmp ecx, ebx
ja 0x48a1c0
cmp eax, ebx
jl 0x48a225
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x1000
lea edx, [esp + 0x344]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48a225
mov ebp, dword [esp + 0x20]
jmp 0x48a1b0
mov dword [ecx + 0x1c], 0x8004000d
mov ebp, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push ebx
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push ebx
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add ebp, 0x1c
sub dword [esp + 0x40], 1
mov dword [esp + 0x20], ebp
jne 0x489f20
mov eax, dword [esp + 0x34]
mov esi, dword [edi + 0x1c]
cmp eax, ebx
je 0x48a2a9
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x34]
push edx
push ecx
push eax
call fcn.00409dd6
mov edx, dword [esp + 0x44]
push edx
call fcn.0048e006
add esp, 0x14
mov eax, esi
mov ecx, dword [esp + 0x133c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1324]
xor ecx, esp
call fcn.0048e25d
add esp, 0x1334
ret