Function at 0x401e80
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x406008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x4063f0]
xor ecx, ecx
push edi
mov edi, dword [0x4063f4]
mov eax, edi
sub eax, esi
mov dword [ebp - 0x448], ecx
sar eax, 2
test eax, eax
je 0x402122
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
nop
mov eax, dword [esi + ecx*4]
mov ecx, dword [0x40640c]
sub ecx, dword [0x406408]
mov dword [ebp - 0x43c], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x440], eax
je 0x402106
lea edi, [eax + eax*2]
shl edi, 3
mov dword [ebp - 0x444], edi
nop
lea eax, [ebp - 0x208]
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__getcwd]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x208]
push 0x4043cc
push 0x200
push eax
call esi
mov eax, dword [0x406408]
add esp, 0x14
add eax, 0xffffffe8
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x401f40
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x208]
push 0x200
push eax
call esi
mov esi, dword [ebp - 0x43c]
add esp, 0xc
push esi
push 0
push 0x42a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x434], edi
test edi, edi
je 0x4020bb
push esi
push 8
mov dword [ebp - 0x438], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x40206c
push 0x220
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x430], 0x224
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x402065
nop dword [eax]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call ebx
add esp, 8
test eax, eax
je 0x402012
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x310]
push eax
call ebx
add esp, 8
test eax, eax
je 0x402012
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x401fd0
jmp 0x402065
push str.FreeLibrary
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push dword [ebp - 0x41c]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x40205f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov dword [ebp - 0x438], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x434]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x438], 0
je 0x4020bb
mov esi, dword [ebp - 0x43c]
lea edx, [ebp - 0x208]
mov ecx, esi
call fcn.00401310
test eax, eax
lea eax, [ebp - 0x208]
push eax
je 0x4020ac
push str.Ejection_failed_:__s_nRetrying..._n
call fcn.00401120
add esp, 8
jmp 0x401f58
push str.Ejection_successful_:__s_n
call fcn.00401120
add esp, 8
jmp 0x4020d6
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Ejection_impossible___d__:__s_n
call fcn.00401120
add esp, 0xc
mov esi, dword [ebp - 0x440]
mov edi, dword [ebp - 0x444]
dec esi
sub edi, 0x18
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x444], edi
test esi, esi
jne 0x401f00
mov edi, dword [0x4063f4]
mov esi, dword [0x4063f0]
mov ecx, dword [ebp - 0x448]
mov eax, edi
sub eax, esi
inc ecx
sar eax, 2
mov dword [ebp - 0x448], ecx
cmp ecx, eax
jb 0x401ec0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403032
mov esp, ebp
pop ebp
ret