Function at 0x105126a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
xor edx, edx
mov ecx, edi
mov ebx, dword [edi + 0x3c]
add ebx, edi
sub eax, dword [0x105101c]
mov dword [ebp - 0xc], eax
sbb edx, edx
neg eax
mov dword [ebp - 8], edx
movzx esi, word [ebx + 0x14]
adc edx, 0
neg edx
mov dword [ebp - 0x10], esi
push edx
mov edx, dword [ebx + 0xa0]
push eax
mov eax, dword [esi + ebx + 0x24]
add eax, dword [0x1051028]
push eax
push dword [ebx + 0xa4]
call fcn.01051048
mov edx, dword [esi + ebx + 0x28]
add esp, 0x10
mov eax, dword [0x1051028]
sub edx, eax
cmp edx, 1
jbe 0x10512e0
mov ecx, dword [esi + ebx + 0x24]
add ecx, eax
add ecx, edi
call fcn.010511d2
mov eax, dword [0x1051020]
add esi, 0x40
add esi, ebx
cmp eax, 1
jbe 0x1051315
mov edx, dword [esi + 0x10]
sub edx, dword [0x105102c]
cmp edx, 1
jbe 0x1051312
mov ecx, dword [esi + 0xc]
add ecx, dword [0x105102c]
add ecx, edi
call fcn.010511d2
mov eax, dword [0x1051020]
add esi, 0x28
cmp eax, 2
jbe 0x1051340
mov edx, dword [esi + 0x10]
sub edx, dword [0x1051030]
cmp edx, 1
jbe 0x105133d
mov ecx, dword [esi + 0xc]
add ecx, dword [0x1051030]
add ecx, edi
call fcn.010511d2
mov eax, dword [0x1051020]
add esi, 0x28
cmp eax, 3
jbe 0x105136b
mov edx, dword [esi + 0x10]
sub edx, dword [0x1051034]
cmp edx, 1
jbe 0x1051368
mov ecx, dword [esi + 0xc]
add ecx, dword [0x1051034]
add ecx, edi
call fcn.010511d2
mov eax, dword [0x1051020]
add esi, 0x28
cmp eax, 4
jbe 0x1051396
mov edx, dword [esi + 0x10]
sub edx, dword [0x1051038]
cmp edx, 1
jbe 0x1051393
mov ecx, dword [esi + 0xc]
add ecx, dword [0x1051038]
add ecx, edi
call fcn.010511d2
mov eax, dword [0x1051020]
add esi, 0x28
cmp eax, 5
jbe 0x10513c1
mov edx, dword [esi + 0x10]
sub edx, dword [0x105103c]
cmp edx, 1
jbe 0x10513be
mov ecx, dword [esi + 0xc]
add ecx, dword [0x105103c]
add ecx, edi
call fcn.010511d2
mov eax, dword [0x1051020]
add esi, 0x28
cmp eax, 6
jbe 0x10513ec
mov edx, dword [esi + 0x10]
sub edx, dword [0x1051040]
cmp edx, 1
jbe 0x10513e9
mov ecx, dword [esi + 0xc]
add ecx, dword [0x1051040]
add ecx, edi
call fcn.010511d2
mov eax, dword [0x1051020]
add esi, 0x28
cmp eax, 7
jbe 0x105140c
mov edx, dword [esi + 0x10]
mov eax, dword [0x1051044]
sub edx, eax
cmp edx, 1
jbe 0x105140c
mov ecx, dword [esi + 0xc]
add ecx, eax
add ecx, edi
call fcn.010511d2
cmp dword [0x1051014], 0
je 0x1051455
lea eax, [ebx + 0x88]
cmp dword [eax], 0
je 0x1051455
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 4
push 8
push eax
call esi
mov eax, dword [0x1051014]
lea ecx, [ebx + 0x88]
mov dword [ecx], eax
mov eax, dword [0x1051018]
mov dword [ebx + 0x8c], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 8
push ecx
call esi
mov eax, dword [ebp - 0x10]
mov ecx, edi
push dword [ebp - 8]
mov edx, dword [ebx + 0xa0]
push dword [ebp - 0xc]
mov eax, dword [eax + ebx + 0x24]
add eax, dword [0x1051028]
push eax
push dword [ebx + 0xa4]
call fcn.01051048
mov edx, dword [0x1051004]
add esp, 0x10
push dword [0x1051010]
push dword [0x105100c]
push ecx
mov ecx, edi
call fcn.0105110c
mov eax, dword [section..text]
add esp, 0xc
add eax, edi
call eax
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]