Function at 0x401860
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
call fcn.00401250
test eax, eax
je 0x401bd6
mov esi, eax
mov eax, dword [section..bss]
mov dword [esp + 0x2c], 0
mov edi, dword [sym.imp.ucrtbase.dll_iswdigit]
mov dword [esp + 0x18], 0
test eax, eax
je 0x401983
lea esi, [esi]
mov ecx, dword [esp + 0x18]
lea eax, [ecx*4]
mov dword [esp + 0x1c], eax
mov eax, dword [0x405004]
mov ecx, dword [eax + ecx*4]
mov ebp, ecx
mov ebx, ecx
jmp 0x4018e0
add ebp, 2
mov dword [esp], eax
call edi
test eax, eax
je 0x4019c0
movzx eax, word [ebp]
test ax, ax
jne 0x4018d0
mov dword [esp], ebx
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll_wcstol]
mov ebx, eax
mov eax, dword [esp + 0x20]
cmp ebx, eax
je 0x401b70
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_OpenProcess]
sub esp, 0xc
mov ebp, eax
test eax, eax
je 0x401b8c
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
sub esp, 8
test eax, eax
je 0x401af8
mov dword [esp + 4], ebx
mov dword [esp], 0x6d
call fcn.004011e0
mov dword [esp], ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
add dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
cmp eax, dword [section..bss]
jb 0x4018b0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [esp + 0x2c]
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x34]
mov ecx, ebx
xor ebp, ebp
mov ebx, eax
test edx, edx
je 0x401ad8
mov dword [esp + 0x28], ebx
mov ebx, edx
jmp 0x4019eb
add ebp, 1
cmp ebp, ebx
je 0x401ac0
mov eax, dword [esi + ebp*4]
lea edx, [esp + 0x38]
call fcn.004013d0
test eax, eax
je 0x4019e0
mov eax, dword [0x405004]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + edx]
mov dword [esp + 4], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x4019e0
mov eax, dword [esi + ebp*4]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
je 0x401b80
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_OpenProcess]
sub esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x401bad
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
sub esp, 8
test eax, eax
je 0x401b30
mov eax, dword [esi + ebp*4]
add ebp, 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [0x405004]
mov eax, dword [eax + ecx]
mov dword [esp], 0x6e
mov dword [esp + 4], eax
call fcn.004011e0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 0x28], 1
cmp ebp, ebx
jne 0x4019eb
lea esi, [esi]
mov ebx, dword [esp + 0x28]
test ebx, ebx
jne 0x40196e
mov eax, dword [0x405004]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [eax + ebx]
mov dword [esp + 4], ecx
mov dword [esp], 0x6f
call fcn.004011e0
mov dword [esp + 0x2c], pe_nt_image_headers32
jmp 0x40196e
mov ebx, dword [esp + 0x1c]
mov eax, dword [0x405004]
mov eax, dword [eax + ebx]
mov dword [esp], 0x71
mov dword [esp + 4], eax
call fcn.004011e0
mov dword [esp], ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 0x2c], 1
jmp 0x40196e
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x405004]
mov eax, dword [eax + ecx]
mov dword [esp], 0x71
mov dword [esp + 4], eax
call fcn.004011e0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 0x2c], 1
jmp 0x4019e0
mov eax, 0x72
call fcn.00401550
jmp 0x401b20
mov eax, 0x72
call fcn.00401550
jmp 0x401b5c
mov ebx, dword [esp + 0x1c]
mov eax, dword [0x405004]
mov eax, dword [eax + ebx]
mov dword [esp], 0x6f
mov dword [esp + 4], eax
call fcn.004011e0
jmp 0x401ae8
mov eax, dword [0x405004]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + ecx]
mov dword [esp], 0x6f
mov dword [esp + 4], eax
call fcn.004011e0
mov dword [esp + 0x2c], pe_nt_image_headers32
jmp 0x4019e0
mov eax, 0x70
call fcn.00401550
mov dword [esp + 0x2c], 1
jmp 0x4019a7