Function at 0x505aa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x38
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [edx + 0x10]
cmp dword [ecx + 0x10], esi
jg 0x505c5c
jge 0x505ac2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
dec esi
lea eax, [edx + 0x14]
lea edx, [eax + esi*4]
mov dword [ebp - 0x38], eax
push ebx
lea ebx, [ecx + 0x14]
mov dword [ebp - 0x2c], eax
mov ecx, dword [edx]
mov eax, ebx
push edi
mov dword [ebp - 0x24], edx
inc ecx
mov dword [ebp - 0x30], eax
xor edx, edx
lea edi, [eax + esi*4]
mov dword [ebp - 8], esi
mov eax, dword [edi]
div ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], eax
cmp eax, 9
jbe 0x505b03
push str.oversized_quotient_in_quorem
jmp 0x505c61
test eax, eax
je 0x505bad
mov ebx, dword [ebp - 4]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
nop dword [eax]
mov eax, dword [esi]
lea edi, [edi + 4]
mul ebx
mov ecx, eax
add ecx, dword [ebp - 0xc]
adc edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0xc], edx
add esi, 4
mov edx, dword [edi - 4]
sub edx, ecx
mov dword [ebp - 0x14], 0
sbb eax, eax
sub edx, dword [ebp - 0x18]
mov dword [edi - 4], edx
sbb eax, dword [ebp - 0x20]
and eax, 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], eax
cmp esi, dword [ebp - 0x24]
jbe 0x505b40
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x28]
cmp dword [edi], 0
jne 0x505bad
sub edi, 4
cmp edi, ebx
jbe 0x505ba5
cmp dword [edi], 0
jne 0x505ba2
sub edi, 4
dec esi
cmp edi, ebx
ja 0x505b95
mov dword [ebp - 8], esi
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], esi
jmp 0x505bb0
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
call fcn.00503430
add esp, 8
test eax, eax
js 0x505c52
inc dword [ebp - 4]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x38]
mov edi, ebx
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
movlpd qword [ebp - 0x10], xmm0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
nop dword [eax + eax]
mov ecx, dword [esi]
lea edi, [edi + 4]
xor eax, eax
add ecx, dword [ebp + 0xc]
adc eax, edx
mov edx, dword [edi - 4]
mov dword [ebp + 0xc], eax
add esi, 4
xor eax, eax
sub edx, ecx
sbb eax, eax
sub edx, ebx
mov dword [edi - 4], edx
mov edx, 0
sbb eax, dword [ebp - 0x20]
mov ebx, eax
mov dword [ebp - 0x20], 0
and ebx, 1
cmp esi, dword [ebp - 0x24]
jbe 0x505bf0
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x28]
cmp dword [ebx + esi*4], edx
lea eax, [ebx + esi*4]
jne 0x505c52
sub eax, 4
cmp eax, ebx
jbe 0x505c4c
nop
cmp dword [eax], edx
jne 0x505c4c
sub eax, 4
dec esi
cmp eax, ebx
ja 0x505c40
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push str.oversize_b_in_quorem
push 0x591970
push 2
call fcn.0052f4fd
add esp, 4
push eax
call fcn.005064b0
add esp, 0xc
push 1
call fcn.00530e23
int3