Function at 0x41f2e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x424b22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x910
mov al, byte [0x42f83c]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x1c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
push 0xe002
rep stosd dword es:[edi], eax
mov ecx, dword [0x42a2c0]
stosw word es:[edi], ax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.00402630
mov esi, dword [esp + 0x930]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x928], 0
mov ecx, dword [esi]
cmp ecx, eax
je 0x41f390
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x41f360
mov edx, dword [0x42a2c4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41f367
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41f375
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, esi
call fcn.00403210
jmp 0x41f38c
mov ecx, esi
call fcn.004028f0
mov eax, dword [esp + 0x10]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x42a2c4]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov dword [esp + 0x928], 0xffffffff
je 0x41f3c6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41f3c6
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00420d62
add esp, 4
mov ebx, dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea eax, [esp + 0x1c]
test eax, eax
je 0x41f46f
mov ecx, str.360safe.log
mov byte [esp + 0x1c], 0
test ecx, ecx
je 0x41f46f
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x120]
push str.360safe.log
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x41f45b
lea edx, [esp + 0x120]
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x120]
push str.360safe.log
lea edx, [esp + 0x124]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0x120]
push 0x104
lea ecx, [esp + 0x20]
push eax
push ecx
jmp 0x41f46a
push 0x104
lea edx, [esp + 0x20]
push str.360safe.log
push edx
call ebx
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
lea eax, [esp + 0x30]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41f57f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jbe 0x41f578
mov ecx, dword [0x42a2c0]
push 0xe003
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
call fcn.00402630
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x92c], 1
mov edx, dword [eax - 8]
push edx
call fcn.00411120
mov eax, dword [esp + 0x10]
mov edx, dword [0x42a2c4]
mov dword [esp + 0x928], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41f517
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41f517
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00420d62
add esp, 4
lea eax, [ebp + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x14], 0
push 0
push ecx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], ebp
jne 0x41f564
test esi, esi
mov byte [esi + ebp], 0
jne 0x41f54f
xor eax, eax
jmp 0x41f556
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x930]
push esi
push eax
call fcn.00411120
test esi, esi
je 0x41f571
push esi
call fcn.00420d62
add esp, 4
mov esi, dword [esp + 0x930]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x1c]
mov byte [esp + 0x1c], 0
test edx, edx
je 0x41f627
mov eax, str.plug.log
mov byte [esp + 0x1c], 0
test eax, eax
je 0x41f627
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x120]
push str.plug.log
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x41f613
lea ecx, [esp + 0x120]
push 0x800
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x120]
push str.plug.log
lea ecx, [esp + 0x124]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [esp + 0x120]
push 0x104
lea eax, [esp + 0x20]
push edx
push eax
jmp 0x41f622
push 0x104
lea ecx, [esp + 0x20]
push str.plug.log
push ecx
call ebx
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x30]
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41f6f0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jbe 0x41f6e2
mov eax, 0x42dfac
test eax, eax
je 0x41f676
push 0x42dfac
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x930]
push 0x42dfac
push eax
call fcn.00411120
lea ecx, [esi + 1]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edx, [esp + 0x14]
mov edi, eax
mov dword [esp + 0x14], 0
push 0
push edx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], esi
jne 0x41f6d5
test edi, edi
mov byte [edi + esi], 0
jne 0x41f6c0
xor eax, eax
jmp 0x41f6c7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x930]
push edi
push eax
call fcn.00411120
test edi, edi
je 0x41f6e2
push edi
call fcn.00420d62
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x930]
lea eax, [esp + 0x1c]
mov byte [esp + 0x1c], 0
test eax, eax
je 0x41f798
mov ecx, str.sosscan.log
mov byte [esp + 0x1c], 0
test ecx, ecx
je 0x41f798
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x120]
push str.sosscan.log
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x41f784
lea edx, [esp + 0x120]
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x120]
push str.sosscan.log
lea edx, [esp + 0x124]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0x120]
push 0x104
lea ecx, [esp + 0x20]
push eax
push ecx
jmp 0x41f793
push 0x104
lea edx, [esp + 0x20]
push str.sosscan.log
push edx
call ebx
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
lea eax, [esp + 0x30]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41f8a8
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jbe 0x41f8a1
mov ecx, dword [0x42a2c0]
push 0xe004
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
call fcn.00402630
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x92c], 2
mov edx, dword [eax - 8]
push edx
call fcn.00411120
mov eax, dword [esp + 0x10]
mov edx, dword [0x42a2c4]
mov dword [esp + 0x928], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41f840
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41f840
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00420d62
add esp, 4
lea eax, [edi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x14], 0
push 0
push ecx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], edi
jne 0x41f88d
test esi, esi
mov byte [esi + edi], 0
jne 0x41f878
xor eax, eax
jmp 0x41f87f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x930]
push esi
push eax
call fcn.00411120
test esi, esi
je 0x41f89a
push esi
call fcn.00420d62
add esp, 4
mov esi, dword [esp + 0x930]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x1c]
mov byte [esp + 0x1c], 0
test edx, edx
je 0x41f950
mov eax, str.onekey.log
mov byte [esp + 0x1c], 0
test eax, eax
je 0x41f950
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x120]
push str.onekey.log
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x41f93c
lea ecx, [esp + 0x120]
push 0x800
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x120]
push str.onekey.log
lea ecx, [esp + 0x124]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [esp + 0x120]
push 0x104
lea eax, [esp + 0x20]
push edx
push eax
jmp 0x41f94b
push 0x104
lea ecx, [esp + 0x20]
push str.onekey.log
push ecx
call ebx
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x30]
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41fa46
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jbe 0x41fa38
push 0xe005
lea ecx, [esp + 0x18]
call fcn.00404410
mov eax, dword [eax]
mov ebx, dword [esp + 0x930]
push eax
mov ecx, ebx
mov eax, dword [eax - 8]
mov dword [esp + 0x92c], 3
push eax
call fcn.00411120
mov eax, dword [esp + 0x14]
mov edx, dword [0x42a2c4]
mov dword [esp + 0x928], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41f9f3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41f9f3
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.00420d62
add esp, 4
lea eax, [esi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x10]
mov edi, eax
mov dword [esp + 0x10], 0
push 0
push ecx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], esi
jne 0x41fa2b
push edi
mov ecx, ebx
mov byte [edi + esi], 0
call fcn.00405270
test edi, edi
je 0x41fa38
push edi
call fcn.00420d62
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x930]
push str._r_n_r_n
mov ecx, esi
call fcn.00405270
push 0xe006
lea ecx, [esp + 0x18]
call fcn.00404410
push eax
mov ecx, esi
mov dword [esp + 0x92c], 4
call fcn.00405160
or edi, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x928], edi
call fcn.00402860
push 0xe007
lea ecx, [esp + 0x1c]
call fcn.00404410
push eax
mov ecx, esi
mov dword [esp + 0x92c], 5
call fcn.00405160
lea ecx, [esp + 0x18]
mov dword [esp + 0x928], edi
call fcn.00402860
mov ecx, dword [esp + 0x920]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x91c
ret