Function at 0x1050f48
Capabilities:
Terminate process

Disassembly:
push 0x548
push 0x10529b8
call fcn.0104f218
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 0x1051342
push 0x1018774
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [ebp - 0x538], eax
cmp eax, ebx
jne 0x105105f
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 0x1051064
push 0x1018774
push eax
call edi
mov dword [ebp - 0x538], eax
cmp eax, ebx
jne 0x1051064
push 0x1018728
mov esi, dword [sym.imp.msvcrt.dll_printf]
call esi
mov dword [esp], 0x10186f4
call esi
pop ecx
jmp 0x10512fd
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.01050206
test eax, eax
jne 0x105109f
mov dword [ebp - 0x53c], 1
jmp 0x10512fd
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 0x1051186
lea eax, [ebp - 0x558]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x105117f
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x558]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x105117f
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 0x1051124
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 0x105117f
mov byte [0x1057bfa], 0xa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
jmp 0x105119f
mov dword [0x1058b6c], ebx
mov esi, dword [ebp - 0x52c]
push esi
call fcn.010503d9
test eax, eax
je 0x10512ae
mov dword [0x10579dc], esi
mov eax, dword [ebp + 0xc]
mov dword [0x10579f0], eax
cmp dword [ebp - 0x530], ebx
je 0x10511ed
mov edi, 0x10186a4
mov esi, dword [ebp - 0x530]
push 8
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10511ed
mov dword [0x1058b70], 1
mov esi, dword [ebp - 0x530]
cmp esi, ebx
je 0x105121f
push 5
push 0x101869c
push esi
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x105121f
mov dword [0x1058b74], 1
add esi, 5
mov dword [0x1058b78], esi
push 2
lea eax, [ebp - 0x528]
push eax
push 0x1050866
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 0x1051262
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 0x10512ae
cmp word [0x10579ec], bx
jbe 0x10512ae
push ebx
push 0x10500b4
push dword [0x10579e4]
push dword [0x10579e0]
push dword [0x105832c]
call dword [sym.imp.dbghelp.dll_SymEnumTypes]
test eax, eax
jne 0x10512a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x101867c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
call fcn.0104fd03
mov eax, dword [0x1058b64]
cmp eax, ebx
je 0x10512c5
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [0x1058b64], ebx
push ebx
call fcn.0105033b
cmp dword [0x1058b6c], ebx
jne 0x10512fd
cmp dword [0x1058b84], ebx
je 0x10512fd
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 0x105132f
call fcn.010503a4
push dword [0x1058b7c]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [0x1058b80], ebx
mov dword [0x1058b7c], ebx
call fcn.0104f897
mov eax, dword [ebp - 0x53c]
call fcn.0104f260
ret 0x10
push 0x1018620
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3