Function at 0x1012dd70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, ecx
mov dword [ebp - 4], 0
push ebx
lea ecx, [edx - 1]
mov dword [ebp - 8], eax
push esi
mov esi, dword [eax + 8]
add ecx, esi
mov eax, ecx
cdq
idiv esi
push edi
sub ecx, edx
mov edi, 0x40000000
mov eax, ecx
mov dword [ebp - 0x10], edi
cdq
mov ebx, edi
idiv esi
mov dword [ebp - 0xc], ecx
test edx, edx
jne 0x1012df71
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 8]
add edx, 0x18
mov esi, edx
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
movzx ecx, word [eax]
mov eax, ecx
add eax, dword [ebp - 0xc]
cmp eax, dword [edi]
mov edi, ebx
jg 0x1012de81
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
movzx eax, cx
push eax
mov dword [ebp - 0x18], ebx
call fcn.1012df80
mov edx, dword [ebp - 8]
mov ecx, eax
add esp, 0xc
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1012de0b
cmp ecx, ebx
cmovl ebx, ecx
cmp ecx, dword [ebp - 0x18]
cmovge esi, dword [ebp - 4]
mov eax, esi
mov dword [ebp - 4], eax
jmp 0x1012de30
mov eax, dword [ebp + 0xc]
add eax, ecx
cmp eax, dword [edx + 4]
jg 0x1012de2d
mov eax, dword [ebp - 0x10]
cmp ecx, ebx
jl 0x1012de22
jne 0x1012de2d
cmp eax, edi
jge 0x1012de2d
mov edi, eax
mov ebx, ecx
mov eax, esi
mov dword [ebp - 4], eax
jmp 0x1012de30
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
add esi, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
movzx eax, word [eax]
mov ecx, eax
add eax, dword [ebp - 0xc]
cmp eax, dword [edx]
mov edx, dword [ebp - 0x18]
jle 0x1012ddd0
mov eax, dword [ebp - 8]
mov ecx, edx
add eax, 0x18
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], eax
mov esi, ebx
mov dword [ebp - 4], ecx
test edx, edx
je 0x1012de8e
mov eax, dword [edx]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ecx
movzx eax, word [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
jmp 0x1012de98
mov eax, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [eax + 0x10]
jmp 0x1012de91
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0
cmp eax, 1
jne 0x1012df5c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x18]
mov edi, ecx
mov dword [ebp - 0x1c], ecx
movzx eax, word [ecx]
cmp eax, edx
jge 0x1012dec3
mov ecx, dword [ecx + 4]
movzx eax, word [ecx]
cmp eax, edx
jl 0x1012deb6
mov dword [ebp - 0x1c], ecx
movzx esi, word [ecx]
sub esi, edx
js 0x1012df71
mov edx, dword [edi + 4]
lea ecx, [edi + 4]
movzx eax, word [edx]
cmp eax, esi
jg 0x1012def2
nop dword [eax + eax]
mov edi, edx
mov dword [ebp - 0x18], ecx
mov edx, dword [edi + 4]
lea ecx, [edi + 4]
movzx eax, word [edx]
cmp eax, esi
jle 0x1012dee0
mov eax, dword [edi + 4]
movzx eax, word [eax]
cmp eax, esi
jle 0x1012df71
movzx eax, word [edi]
cmp eax, esi
jg 0x1012df71
lea eax, [ebp - 0x24]
mov edx, edi
push eax
push dword [ebp - 0xc]
push esi
call fcn.1012df80
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, eax
cmp ecx, dword [edx + 4]
jge 0x1012df45
cmp eax, ebx
jg 0x1012df45
mov ecx, dword [ebp - 0x24]
jl 0x1012df37
cmp ecx, dword [ebp - 0x10]
jl 0x1012df37
jne 0x1012df45
cmp esi, dword [ebp - 0x14]
jge 0x1012df45
mov ebx, eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x1012dec3
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3