Function at 0x41f0c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
lea ebx, [esi*4]
sub esi, eax
add ebx, dword [esp + 0x74]
lea edi, [esi + 1]
mov dword [esp + 0x34], edi
cmp edi, eax
jl 0x41f568
lea edi, [eax - 1]
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], edi
mov edi, esi
sub edi, eax
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x34]
mov edx, ebx
mov ecx, dword [esp + 0x7c]
lea eax, [edi*4]
sub edx, eax
mov eax, edi
jmp 0x41f12c
mov edi, dword [ecx + eax*4]
cmp dword [edx + eax*4], edi
jne 0x41f590
sub eax, 1
jns 0x41f120
mov eax, dword [esp + 0x34]
mov dword [esp + 4], edx
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
call fcn.00404250
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x34]
lea edi, [eax + esi*4]
mov esi, dword [esp + 0x7c]
lea eax, [ecx - 2]
mov dword [esp + 0x28], eax
mov ebp, dword [esi + ecx*4 - 4]
mov dword [esp + 0x1c], eax
lea ecx, [eax*4]
mov eax, dword [esi + eax*4]
lea esi, [ebx - 8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], edi
mov ecx, dword [ebx - 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], esi
test eax, eax
js 0x41f2ac
shl eax, 2
mov dword [esp + 0x10], ebp
mov edx, eax
sub edi, eax
neg edx
mov dword [esp + 0x30], edi
mov edi, esi
mov dword [esp + 0x44], edx
lea esi, [esi]
lea esi, [esi]
sub edi, 4
mov esi, dword [edi + 4]
mov eax, edi
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
cmp ecx, dword [esp + 0x10]
je 0x41f4b8
mov eax, ecx
mul dword [esp + 0x84]
mov ebx, edx
mov edx, dword [esp + 0x10]
mov ebp, eax
add ebp, esi
adc ebx, ecx
mov eax, edx
mov ecx, dword [edi]
imul eax, ebx
sub esi, eax
mov eax, dword [esp + 0x14]
sub ecx, eax
sbb esi, edx
mul ebx
sub ecx, eax
sbb esi, edx
xor edx, edx
cmp ebp, esi
setbe dl
add ebx, 1
mov ebp, edx
sub ebx, edx
mov edx, esi
neg ebp
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x14]
mov eax, ebp
mov ebp, dword [esp + 0x10]
and ebx, eax
and ebp, eax
mov eax, ecx
add eax, ebx
adc edx, ebp
mov esi, edx
mov ebx, eax
cmp dword [esp + 0x10], edx
jbe 0x41f500
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00418ec7
xor edx, edx
mov ecx, esi
cmp ebx, eax
setb dl
sub ebx, eax
mov dword [edi], ebx
sub ecx, edx
cmp esi, edx
jb 0x41f528
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov dword [esi + eax*4 - 4], edx
sub eax, 1
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x41f1c0
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x10]
sub eax, 4
add dword [esp + 0x38], eax
add dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
test eax, eax
js 0x41f498
je 0x41f684
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], ebp
mov ebp, ecx
shl eax, 2
mov edi, eax
neg edi
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x3c]
sub edi, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov edi, eax
lea esi, [esi]
nop
mov eax, dword [esp + 0x1c]
sub edi, 4
mov ecx, dword [esp + 0x30]
mov esi, edi
and ecx, dword [esp + 0x10]
shl eax, 2
mov dword [esp + 0x2c], ecx
sub esi, eax
mov dword [esp + 0x24], esi
cmp ecx, ebp
jbe 0x41f5a8
mov esi, dword [edi + 4]
mov eax, ebp
mov ecx, dword [edi]
mul dword [esp + 0x84]
mov ebx, edx
add eax, esi
adc ebx, ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, ebp
imul eax, ebx
sub esi, eax
mov eax, dword [esp + 0x14]
sub ecx, eax
sbb esi, ebp
mul ebx
sub ecx, eax
sbb esi, edx
xor edx, edx
cmp dword [esp + 0x18], esi
setbe dl
add ebx, 1
sub ebx, edx
mov eax, edx
mov edx, esi
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x14]
neg eax
and ebp, eax
and ebx, eax
mov eax, ecx
add eax, ebx
adc edx, ebp
mov esi, edx
mov ebx, eax
cmp dword [esp + 0x10], edx
jbe 0x41f5e8
mov eax, dword [esp + 0x18]
mov ebp, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00418ec7
xor edx, edx
cmp ebx, eax
setb dl
sub ebx, eax
mov dword [edi], ebx
sub ebp, edx
cmp esi, edx
jb 0x41f610
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
add dword [esp + 0x20], 4
mov dword [ecx + eax*4 + 4], esi
sub eax, 1
mov dword [esp + 0x1c], eax
jne 0x41f2f8
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov ebp, dword [esp + 0x10]
add eax, 8
add dword [esp + 0x3c], eax
add edi, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x28]
lea eax, [eax + edi*4]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x10]
sub eax, 4
mov dword [esp + 0x38], eax
cmp ecx, dword [esp + 0x2c]
jae 0x41f69d
mov edi, dword [esp + 0x10]
mov eax, ecx
mul dword [esp + 0x84]
mov esi, dword [edi]
mov edi, eax
mov eax, ebp
mov ebx, edx
add edi, esi
adc ebx, ecx
imul eax, ebx
mov ecx, esi
sub ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 4]
mov esi, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
sub esi, eax
sbb ecx, ebp
mul ebx
sub esi, eax
sbb ecx, edx
xor edx, edx
cmp edi, ecx
setbe dl
add ebx, 1
mov edi, edx
neg edi
mov eax, edi
mov edi, ebx
mov ebx, ebp
and ebx, eax
sub edi, edx
and eax, dword [esp + 0x14]
mov edx, ecx
add esi, eax
adc edx, ebx
mov ecx, edx
mov eax, esi
cmp ebp, edx
jbe 0x41f643
mov esi, dword [esp + 0x10]
mov dword [esi], ecx
mov dword [esi - 4], eax
mov eax, dword [esp + 0x3c]
mov dword [eax - 4], edi
mov eax, dword [esp + 0x38]
cmp dword [eax + 4], ecx
jne 0x41f668
mov eax, dword [esp + 0x40]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, dword [esp + 0x14]
jne 0x41f1da
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00418ec7
mov dword [esp + 0x18], 0xffffffff
mov ecx, dword [edi + 4]
jmp 0x41f279
jb 0x41f50c
cmp dword [esp + 0x14], eax
ja 0x41f23e
mov esi, edx
add dword [esp + 0x18], 1
sub eax, dword [esp + 0x14]
sbb esi, dword [esp + 0x10]
mov ebx, eax
jmp 0x41f23e
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.004041a0
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x10]
sub dword [esp + 0x18], 1
lea ebp, [esi + ecx]
lea ecx, [eax + ebp]
jmp 0x41f279
mov edi, dword [esp + 0x7c]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x48], esi
mov dword [esp + 0x20], 0xffffffff
lea eax, [edi + eax*4]
mov dword [esp + 0x7c], eax
jmp 0x41f101
ja 0x41f131
mov dword [esp + 0x40], 0
jmp 0x41f155
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp], esi
lea ebx, [eax + 2]
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call fcn.00418ec7
mov dword [esp + 0x18], 0xffffffff
cmp ebp, eax
jne 0x41f6dd
mov ebp, dword [edi + 4]
jmp 0x41f3be
jb 0x41f5f4
cmp dword [esp + 0x14], eax
ja 0x41f383
mov esi, edx
add dword [esp + 0x18], 1
sub eax, dword [esp + 0x14]
sbb esi, dword [esp + 0x10]
mov ebx, eax
jmp 0x41f383
mov eax, dword [esp + 0x1c]
add eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.004041a0
add ebp, dword [esp + 0x10]
sub dword [esp + 0x18], 1
add ebp, eax
jmp 0x41f3be
jb 0x41f64f
cmp dword [esp + 0x14], esi
ja 0x41f488
mov ecx, edx
add edi, 1
sub esi, dword [esp + 0x14]
sbb ecx, ebp
mov eax, esi
jmp 0x41f488
mov dword [esp + 8], str.np_1___n1
mov dword [esp + 4], 0xc3
mov dword [esp], str.sbpi1_divappr_q.c
call fcn.004185f0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], eax
jmp 0x41f40a
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call fcn.00418ec7
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x41f723
mov eax, dword [esp + 0x10]
mov edi, 0xffffffff
mov ecx, dword [eax]
jmp 0x41f491
and eax, dword [esp + 0x30]
cmp eax, ebp
ja 0x41f6fa
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
jmp 0x41f5db
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.004041a0
mov dword [esp + 0x18], 0xfffffffe
jmp 0x41f5db
mov edi, dword [esp + 0x10]
and eax, dword [esp + 0x30]
mov edx, dword [edi]
cmp ecx, eax
jae 0x41f755
mov eax, dword [edi - 4]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
add eax, dword [ecx]
adc edx, dword [ecx + 4]
mov ecx, dword [esp + 0x38]
mov dword [edi], edx
mov dword [ecx], eax
mov ecx, dword [edi]
mov edi, 0xfffffffe
jmp 0x41f491
mov ecx, edx
mov edi, 0xffffffff
jmp 0x41f491