Function at 0x4225b0
Capabilities:
Enumerate process modules
Get common file path
Get file size
Get startup folder
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
call fcn.00402c91
push 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x1584]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.00401240
push 0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1584]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.00401240
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x422638
push 0x100
mov eax, dword [ebp - 0x28]
add eax, 0x78
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleBaseNameA
push 0x400
mov edx, dword [ebp - 0x28]
add edx, 0x178
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 0x28]
add ecx, 0x578
push ecx
push 0
push 0
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edx, dword [ebp - 0x28]
add edx, 0xd78
push edx
push 0
push 0
push 0x18
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov eax, dword [ebp - 0x28]
add eax, 0x78
push eax
push 0x4287d4
mov ecx, dword [ebp - 0x28]
add ecx, 0x578
push ecx
call fcn.0040e610
add esp, 4
mov edx, dword [ebp - 0x28]
lea eax, [edx + eax + 0x578]
push eax
call fcn.0040e69b
add esp, 0xc
mov ecx, dword [ebp - 0x28]
add ecx, 0x78
push ecx
push 0x4287d8
mov edx, dword [ebp - 0x28]
add edx, 0xd78
push edx
call fcn.0040e610
add esp, 4
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax + 0xd78]
push edx
call fcn.0040e69b
add esp, 0xc
push 0
push 0
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 0x28]
add eax, 0x178
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x157c], 0
cmp dword [ebp - 4], 0
je 0x422844
cmp dword [ebp - 4], 0xffffffff
je 0x422844
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x157c], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x157c]
push eax
call fcn.00401503
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x1578], edx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x1578], 0
je 0x422844
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x157c]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x1578]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422815
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0x157c]
jne 0x422815
mov dword [ebp - 0x18], method.CAdwTestApp.virtual_4
mov dword [ebp - 0xc], 0
jmp 0x4227a9
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2319b
jge 0x4227cf
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x1578]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov al, byte [eax]
mov byte [ecx + edx + 0x1000], al
jmp 0x4227a0
jmp 0x4227da
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x2321b
jge 0x4227f9
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1578]
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax + 0x1000], 0
jmp 0x4227d1
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1578]
add eax, 0x110
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0xf21d
jmp 0x42283a
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x157c], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x1578]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004014fe
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.NtResumeProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 0x28]
mov byte [edx + 0x1580], 0
push 0
push 0x2710
push 0
mov ecx, dword [ebp - 0x28]
call fcn.00401210
push 0
push 0x1f4
push 1
mov ecx, dword [ebp - 0x28]
call fcn.00401210
mov eax, 1
mov esp, ebp
pop ebp
ret