Function at 0x58fcc4
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
in al, dx
pop eax
mov dword [ebp - 8], str.PathFindFileNameW
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x50], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x78]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
push 0x104
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
call fcn.0058fc10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x58]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x58fded
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
cmp eax, edx
je 0x58fd90
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 1]
cmp eax, edx
je 0x58fd90
push 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x84]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x14]
call fcn.0058fc70
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
cmp edx, dword [ecx + eax]
je 0x58fded
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
cmp edx, dword [ecx + eax]
je 0x58fded
push 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x84]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x20a
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x48]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0
push 0
push 0
push 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x58fe9a
jmp 0x58ff6c
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x74]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x58fec8
jmp 0x58ff6c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x78]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [ebp - 0x48]
test eax, eax
je 0x58fef3
cmp dword [ebp - 0x28], 0
jbe 0x58fef3
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], edx
jmp 0x58fef7
jmp 0x58ff6c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x2c]
jne 0x58ff03
jmp 0x58ff6c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x18], 0
jmp 0x58ff1d
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x20
jge 0x58ff3c
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + eax]
add ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
mov dword [edx], ecx
jmp 0x58ff14
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x58ff57
jmp 0x58ff6c
push 0
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
push eax
lea ecx, [ebp - 0x50]
push ecx
call dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
push 0x10
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x84]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]