Function at 0x47df65
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x98
mov eax, 0x5dd587
call fcn.00447fd9
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa0], eax
and dword [ebp - 4], 0
call fcn.004865bf
test al, al
je 0x47df9d
pop esi
push ebx
pop ecx
pop esi
pop ebx
pop edi
pop esi
push esp
push edx
push edx
pop ebp
push eax
push ebx
pop ecx
pop esp
pop ebx
pop esp
pop esp
push esp
call fcn.00486535
test al, al
je 0x47dfc1
push edx
push esi
pop ecx
pop esp
pop edx
pop ecx
push edx
push eax
push ebp
pop esi
pop edi
push ebx
pop esp
pop ecx
pop ecx
pop ecx
pop edi
push esp
pop edi
pop ebp
pop ecx
push ecx
pop eax
push edx
pop eax
pop ebx
push ebx
call fcn.004864f0
test al, al
je 0x47dfe3
pop ebx
pop edx
pop edi
push ebx
pop ecx
pop edx
pop ebx
push ebp
push ecx
pop ebx
push ebp
pop ebx
push edx
push esi
push ecx
push ecx
push ecx
push eax
pop esi
push esp
pop edx
pop edx
pop edi
push ecx
push edi
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x64a7dc
mov word [ebp - 0x28], ax
call fcn.00401ea0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00494e3e
and dword [ebp - 0x98], 0
call fcn.004863dc
test al, al
je 0x47e03e
pop ebx
push edx
push ebp
pop esi
pop ebx
push edi
pop edi
pop esi
pop ebx
push esi
push ebx
push edi
pop eax
pop esp
pop ebx
pop ebx
push ebx
pop ebp
push edx
pop eax
push ebp
push edi
push esi
pop esi
pop edi
pop edi
push ecx
push esp
push edi
call fcn.004861b4
test al, al
je 0x47e067
push esi
pop esp
pop esp
pop edx
pop edx
push edx
push ecx
push esi
push ebp
pop edx
pop eax
push eax
pop esp
pop esi
pop esp
push eax
push edi
push esp
pop eax
push ecx
pop edx
push edx
push ebp
push ecx
pop ecx
push eax
push ebx
pop edx
push ebx
push eax
pop esi
push eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e150
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x9c], eax
cmp eax, 0xffffffff
je 0x47e149
call fcn.00486535
test al, al
je 0x47e0d3
push edx
pop ebp
push edi
pop ebx
pop edx
pop esp
push ebx
push eax
push ebx
push edi
pop edi
push esp
pop ecx
pop eax
pop ebp
push esp
push ecx
push ebp
push ebx
pop ebx
push edi
pop esi
push 0
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp - 0xa0]
push eax
mov dword [ebx], eax
call fcn.004482ea
mov dword [ebp - 0x98], eax
pop ecx
test eax, eax
jne 0x47e174
call fcn.004863dc
test al, al
je 0x47e120
pop ebx
push edx
push ebp
pop esi
pop ebx
push edi
pop edi
pop esi
pop ebx
push esi
push ebx
push edi
pop eax
pop esp
pop ebx
pop ebx
push ebx
pop ebp
push edx
pop eax
push ebp
push edi
push esi
pop esi
pop edi
pop edi
push ecx
push esp
push edi
call fcn.004861b4
test al, al
je 0x47e149
push esi
pop esp
pop esp
pop edx
pop edx
push edx
push ecx
push esi
push ebp
pop edx
pop eax
push eax
pop esp
pop esi
pop esp
push eax
push edi
push esp
pop eax
push ecx
pop edx
push edx
push ebp
push ecx
pop ecx
push eax
push ebx
pop edx
push ebx
push eax
pop esi
push eax
and dword [ebp - 0x98], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401de0
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00401de0
mov eax, dword [ebp - 0x98]
call fcn.00447f83
ret
push dword [ebx]
push 0
push eax
call fcn.004a2e40
add esp, 0xc
call fcn.00486535
test al, al
je 0x47e1a6
push edx
pop ebp
push edi
pop ebx
pop edx
pop esp
push ebx
push eax
push ebx
push edi
pop edi
push esp
pop ecx
pop eax
pop ebp
push esp
push ecx
push ebp
push ebx
pop ebx
push edi
pop esi
mov ebx, dword [ebp - 0xa0]
push 0
lea eax, [ebp - 0xa4]
push eax
push dword [ebx]
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.004864ab
test al, al
je 0x47e1eb
push esp
push edi
pop ebx
pop ecx
pop esp
pop ebx
pop ebx
push ecx
pop ebp
pop eax
pop ebp
push ebx
pop ebx
pop edx
push ebp
push ebx
pop edi
pop eax
push ebx
push edx
pop edx
pop eax
pop edi
push ebp
pop edx
push ebp
push ebx
pop ebp
push ebx
pop edx
pop esi
call fcn.00485f47
test al, al
je 0x47e20d
pop edx
push ecx
push ebp
pop edx
push esp
push esp
push edx
push esi
pop eax
push esi
pop ebx
pop ecx
pop esi
pop ebx
push edi
pop edi
push ecx
push esi
pop edi
pop edi
push ecx
push esp
pop ebp
push ebp
push edi
call fcn.004861f9
test al, al
je 0x47e232
pop edx
push ecx
pop ebp
pop ebx
pop ebp
pop eax
pop ebx
push edi
push edx
push esi
pop edi
push eax
push edx
push edi
push esi
push esp
pop ebp
push ecx
push edx
pop eax
pop ebp
pop esi
push ecx
pop ecx
push ebx
pop edi
push edi
pop ebp
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47e150