Function at 0x10007860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], eax
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x10007daf
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x100078a8
cmp eax, 8
jne 0x10007daf
cmp dword [esi + 0x2c], 1
jne 0x100078c2
push esi
call fcn.100070e0
add esp, 4
test eax, eax
jne 0x10007b55
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x24]
test edi, edi
mov edx, 0x10011f90
cmovne edx, edi
mov dword [ebp - 0x20], edx
push ebx
test eax, eax
jne 0x100078db
xor ebx, ebx
jmp 0x100078e9
mov ebx, eax
lea edi, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100078e0
sub ebx, edi
mov edi, edx
mov dword [ebp - 0x1c], ebx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100078f1
sub edi, edx
test ecx, ecx
jne 0x10007902
xor eax, eax
jmp 0x10007913
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x10007913
push eax
push ecx
call fcn.10008000
add esp, 8
mov ecx, dword [ebp + 0x2c]
mov dword [esi + 0x4088], eax
mov dword [esi + 0x7c], 0
cmp ecx, 8
je 0x1000792f
xor eax, eax
cmp ecx, 9
jne 0x1000793b
mov dword [esi + 0x7c], 2
mov eax, 2
cmp ecx, 2
jne 0x10007946
or eax, 4
mov dword [esi + 0x7c], eax
cmp ecx, 1
jne 0x10007955
mov dword [esi + 0x7c], 6
lea eax, [ecx + 5]
cmp dword [ebp - 0x24], 0
je 0x10007961
or eax, 1
mov dword [esi + 0x7c], eax
mov eax, dword [ebp + 0x28]
push dword [esi + 0x20]
mov dword [esi + 0x80], eax
mov eax, dword [ebp + 0x30]
push dword [esi + 0x1c]
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x408c], 0
mov dword [esi + 0x4090], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call eax
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x14]
add eax, 0x2e
add eax, edi
add eax, ebx
push eax
mov dword [esi + 0x78], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 4
push 0x2014b50
push eax
mov dword [esi + 0x74], eax
call fcn.10008200
mov eax, dword [esi + 0x74]
push 2
add eax, 4
push 0
push eax
call fcn.10008200
mov eax, dword [esi + 0x74]
push 2
add eax, 6
push 0x14
push eax
call fcn.10008200
mov eax, dword [esi + 0x74]
push 2
push dword [esi + 0x7c]
add eax, 8
push eax
call fcn.10008200
mov eax, dword [esi + 0x74]
push 2
push dword [esi + 0x80]
add eax, 0xa
push eax
call fcn.10008200
mov eax, dword [esi + 0x74]
add esp, 0x48
add eax, 0xc
push 4
push dword [esi + 0x4088]
push eax
call fcn.10008200
mov eax, dword [esi + 0x74]
push 4
add eax, 0x10
push 0
push eax
call fcn.10008200
mov eax, dword [esi + 0x74]
push 4
add eax, 0x14
push 0
push eax
call fcn.10008200
mov eax, dword [esi + 0x74]
push 4
add eax, 0x18
push 0
push eax
call fcn.10008200
mov eax, dword [esi + 0x74]
push 2
add eax, 0x1c
push edi
push eax
call fcn.10008200
push 2
mov eax, dword [esi + 0x74]
push dword [ebp - 0x14]
add eax, 0x1e
push eax
call fcn.10008200
mov eax, dword [esi + 0x74]
add esp, 0x48
add eax, 0x20
push 2
push ebx
push eax
call fcn.10008200
mov eax, dword [esi + 0x74]
push 2
add eax, 0x22
push 0
push eax
call fcn.10008200
mov eax, dword [ebp - 0x18]
add esp, 0x18
test eax, eax
je 0x10007aa2
mov eax, dword [eax + 0x1c]
push 2
push eax
mov eax, dword [esi + 0x74]
add eax, 0x24
push eax
call fcn.10008200
mov eax, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x10007abe
mov eax, dword [eax + 0x20]
push 4
push eax
mov eax, dword [esi + 0x74]
add eax, 0x26
push eax
call fcn.10008200
mov eax, dword [esi + 0x70]
sub eax, dword [esi + 0x40ac]
push 4
push eax
mov eax, dword [esi + 0x74]
add eax, 0x2a
push eax
call fcn.10008200
add esp, 0x18
xor edx, edx
test edi, edi
je 0x10007b03
mov ebx, dword [ebp - 0x20]
mov ecx, dword [esi + 0x74]
mov al, byte [ebx + edx]
mov byte [ecx + edx + 0x2e], al
inc edx
cmp edx, edi
jb 0x10007af1
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
xor edx, edx
test eax, eax
je 0x10007b2a
mov ebx, eax
nop
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esi + 0x74]
add ecx, edx
mov al, byte [edx + eax]
inc edx
mov byte [ecx + edi + 0x2e], al
cmp edx, ebx
jb 0x10007b10
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
xor edx, edx
test ebx, ebx
je 0x10007b49
mov ecx, dword [esi + 0x74]
add ecx, eax
mov eax, dword [ebp + 0x24]
add ecx, edx
mov al, byte [edx + eax]
inc edx
mov byte [ecx + edi + 0x2e], al
mov eax, dword [ebp - 0x14]
cmp edx, ebx
jb 0x10007b30
cmp dword [esi + 0x74], 0
jne 0x10007b65
mov eax, 0xffffff98
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100085db
mov esp, ebp
pop ebp
ret
push 4
push 0x4034b50
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10007ca6
push 2
push 0x14
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10007ca6
push 2
push dword [esi + 0x7c]
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10007ca6
push 2
push dword [esi + 0x80]
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10007ca6
push 4
push dword [esi + 0x4088]
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10007ca6
push 4
push eax
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10007ca6
push 4
push eax
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10007ca6
push 4
push eax
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10007ca6
push 2
push edi
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10007ca6
push 2
push dword [ebp + 0x18]
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10007ca6
test edi, edi
je 0x10007c85
mov eax, dword [esi + 8]
push edi
push dword [ebp - 0x20]
push dword [esi + 0x20]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, edi
je 0x10007c85
or ebx, 0xffffffff
jmp 0x10007ca6
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x10007ca6
mov eax, dword [esi + 8]
push edi
push dword [ebp - 0x28]
push dword [esi + 0x20]
push dword [esi + 0x1c]
call eax
or ecx, 0xffffffff
add esp, 0x10
cmp eax, edi
cmovne ebx, ecx
mov dword [esi + 0x34], 0
lea eax, [esi + 0x88]
mov dword [esi + 0x40], 0x4000
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x44], 0
test ebx, ebx
jne 0x10007d1f
cmp dword [esi + 0x80], 8
jne 0x10007d1f
cmp dword [esi + 0x84], ebx
jne 0x10007d1f
mov eax, dword [ebp + 0x34]
push 0x38
push str.1.2.8
push dword [ebp + 0x3c]
cdq
push dword [ebp + 0x38]
xor eax, edx
mov dword [esi + 0x50], ebx
sub eax, edx
mov dword [esi + 0x54], ebx
neg eax
mov dword [esi + 0x58], ebx
push eax
push 8
push dword [ebp + 0x2c]
lea eax, [esi + 0x30]
push eax
call fcn.1000b3d0
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x10007d1f
mov dword [esi + 0x68], 1
mov dword [esi + 0x40a4], 0
test ebx, ebx
jne 0x10007d9c
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x10007d95
mov dword [esi + 0x4090], 1
call fcn.1000d040
push dword [ebp + 0x44]
mov dword [esi + 0x40a0], eax
push eax
lea eax, [esi + 0x4094]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.10006c40
mov ecx, dword [esi + 8]
mov edi, eax
push edi
lea eax, [ebp - 0x10]
mov dword [esi + 0x40a4], edi
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call ecx
add esp, 0x28
cmp eax, edi
je 0x10007d95
or ebx, 0xffffffff
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100085db
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x2c], 1
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100085db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffff9a
pop edi
xor ecx, ebp
pop esi
call fcn.100085db
mov esp, ebp
pop ebp
ret