Function at 0x1050f55
Capabilities:
Terminate process

Disassembly:
push 0x548
push 0x10529c8
call fcn.0104f228
mov eax, dword [ebp + 8]
mov dword [ebp - 0x52c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x530], eax
xor ebx, ebx
mov dword [ebp - 0x53c], ebx
mov eax, dword [ebp + 0x14]
mov dword [0x1058b84], eax
mov dword [0x1058224], ebx
push 0x1017a24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x534], esi
cmp esi, ebx
je 0x105134f
push 0x1018774
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [ebp - 0x538], eax
cmp eax, ebx
jne 0x105106c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, 0x104
push esi
lea eax, [ebp - 0x120]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push ebx
push ebx
push esi
lea eax, [ebp - 0x120]
push eax
push 3
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll__splitpath_s
push 0x1018770
push 0x1018768
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x540]
push eax
push esi
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll__makepath_s
add esp, 0x3c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x534], eax
cmp eax, ebx
je 0x1051071
push 0x1018774
push eax
call edi
mov dword [ebp - 0x538], eax
cmp eax, ebx
jne 0x1051071
push 0x1018728
mov esi, dword [sym.imp.msvcrt.dll_printf]
call esi
mov dword [esp], 0x10186f4
call esi
pop ecx
jmp 0x105130a
mov esi, 0x104
push esi
mov edi, 0x1058228
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push esi
push 0x1058a60
push ebx
push ebx
push ebx
push ebx
push edi
call sub.msvcrt.dll__splitpath_s
add esp, 0x24
call fcn.01050213
test eax, eax
jne 0x10510ac
mov dword [ebp - 0x53c], 1
jmp 0x105130a
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp - 0x52c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, ebx
je 0x1051193
lea eax, [ebp - 0x558]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x105118c
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x558]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x105118c
push dword [ebp - 0x52c]
push 0x10186e4
mov esi, 0x204
push esi
push 0x1057c00
call sub.msvcrt.dll_sprintf_s
add esp, 0x10
test eax, eax
jg 0x1051131
mov byte [0x1057e02], 0xa
push 0x1058a60
movzx eax, word [ebp - 0x542]
push eax
movzx eax, word [ebp - 0x544]
push eax
movzx eax, word [ebp - 0x546]
push eax
movzx eax, word [ebp - 0x548]
push eax
movzx eax, word [ebp - 0x54a]
push eax
movzx eax, word [ebp - 0x54e]
push eax
movzx eax, word [ebp - 0x550]
push eax
push 0x10186ac
push esi
push 0x10579f8
call sub.msvcrt.dll_sprintf_s
add esp, 0x2c
test eax, eax
jg 0x105118c
mov byte [0x1057bfa], 0xa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
jmp 0x10511ac
mov dword [0x1058b6c], ebx
mov esi, dword [ebp - 0x52c]
push esi
call fcn.010503e6
test eax, eax
je 0x10512bb
mov dword [0x10579dc], esi
mov eax, dword [ebp + 0xc]
mov dword [0x10579f0], eax
cmp dword [ebp - 0x530], ebx
je 0x10511fa
mov edi, 0x10186a4
mov esi, dword [ebp - 0x530]
push 8
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10511fa
mov dword [0x1058b70], 1
mov esi, dword [ebp - 0x530]
cmp esi, ebx
je 0x105122c
push 5
push 0x101869c
push esi
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x105122c
mov dword [0x1058b74], 1
add esi, 5
mov dword [0x1058b78], esi
push 2
lea eax, [ebp - 0x528]
push eax
push 0x1050873
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [0x10579e4]
push dword [0x10579e0]
push dword [0x105832c]
call dword [ebp - 0x538]
test eax, eax
jne 0x105126f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x101867c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
cmp dword [0x105800c], ebx
je 0x10512bb
cmp word [0x10579ec], bx
jbe 0x10512bb
push ebx
push 0x10500c1
push dword [0x10579e4]
push dword [0x10579e0]
push dword [0x105832c]
call dword [sym.imp.dbghelp.dll_SymEnumTypes]
test eax, eax
jne 0x10512b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x101867c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
call fcn.0104fd13
mov eax, dword [0x1058b64]
cmp eax, ebx
je 0x10512d2
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [0x1058b64], ebx
push ebx
call fcn.01050348
cmp dword [0x1058b6c], ebx
jne 0x105130a
cmp dword [0x1058b84], ebx
je 0x105130a
push dword [ebp - 0x52c]
push 0x1058a60
push 0x1018644
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
push dword [ebp - 0x534]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x1058b7c], ebx
je 0x105133c
call fcn.010503b1
push dword [0x1058b7c]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [0x1058b80], ebx
mov dword [0x1058b7c], ebx
call fcn.0104f8a7
mov eax, dword [ebp - 0x53c]
call fcn.0104f270
ret 0x10
push 0x1018620
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3