Function at 0x405080
Capabilities:
Terminate process

Disassembly:
ror dword [ebx - 0x49f02bbb], cl
add byte [eax], bh
inc ebp
sal dword [ebx + eax*2 - 0x75], cl
inc ebp
aam 0x83
rol byte [ecx], 0xf
mov dh, 0
cmp byte [ebp - 0x2d], al
je 0x4050cf
mov edx, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x44]
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_ExitProcess]
call eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00404f61
mov dword [ebp - 0x34], eax
add dword [ebp - 0x2c], 4
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
je 0x40512d
mov eax, dword [ebp - 0x2c]
add eax, 4
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
je 0x40512d
mov edx, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x44]
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_ExitProcess]
call eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0x24]
add eax, 0x20a
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x80]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x68], 0
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
sub esp, 0x14
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x40531e
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 0x18
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x405321
mov edx, dword [ebx + 0x64]
lea eax, [ebp - 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
sub esp, 0x10
test eax, eax
je 0x40527d
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x40527d
mov eax, 1
jmp 0x405282
mov eax, 0
test al, al
je 0x405324
mov eax, dword [ebp - 0x68]
add dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x3c]
je 0x405327
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0x1f
jg 0x4052d0
mov edx, dword [ebx + 0x24]
mov eax, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
add eax, edx
mov edx, dword [ebp - 0x5c]
add edx, ecx
mov dword [eax], edx
add dword [ebp - 0xc], 4
jmp 0x4052ab
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40532a
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x64]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
sub esp, 0x10
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jmp 0x40532b
nop
jmp 0x40532b
nop
jmp 0x40532b
nop
jmp 0x40532b
nop
jmp 0x40532b
nop
mov edx, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x44]
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_ExitProcess]
call eax
nop
nop