Function at 0x40574e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], 0x4630a4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x74]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x58]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
push 0x104
mov eax, dword [ebp - 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0
je 0x40587e
mov ecx, dword [ebp - 0x18]
call fcn.004056ce
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax]
cmp edx, ecx
je 0x405824
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 1]
cmp edx, ecx
je 0x405824
push 0x10
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x64]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x18]
call fcn.004056fe
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + edx]
je 0x40587e
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + edx]
je 0x40587e
push 0x10
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x64]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc], 0
jmp 0x4058d9
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
jge 0x4058f8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x68]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0xc]
mov dword [edx], ecx
jmp 0x4058d0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x405919
jmp fcn.004059d2
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x60]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
push eax
push 0x4000
mov ecx, dword [ebp - 0x10]
push ecx
call dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x28]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0xc], 8
jmp 0x405960
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x4000
jge 0x40597e
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [eax], edx
jmp 0x405957
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x38]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0x4000
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x84]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0xc]