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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x7c
mov esi, dword [esp + 0x90]
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 0x78], eax
cmp dword [esi], 0
jne 0x4150ec
push 0x4fe
push str..._mpint.c
push str.x__nw___0
call fcn.0048233d
add esp, 0xc
mov ebx, dword [esp + 0x94]
mov eax, dword [esi + 4]
test byte [eax], 1
jne 0x415112
push 0x4ff
push str..._mpint.c
push str.x__w_0___1
call fcn.0048233d
add esp, 0xc
test ebx, ebx
jne 0x41512d
push 0x500
push str..._mpint.c
push str.p___0
call fcn.0048233d
add esp, 0xc
lea edi, [ebx + 0x1f]
shr edi, 5
xor eax, eax
inc eax
test edi, edi
cmove edi, eax
push edi
call fcn.004138e8
add esp, 4
lea ecx, [edi + edi]
cmp edi, ecx
cmovbe ecx, edi
add ecx, ecx
lea esi, [ecx + ecx*2]
lea ecx, [edi + edi*2]
mov edi, eax
lea eax, [esi + ecx*2]
push eax
call fcn.004138e8
add esp, 4
mov dword [esp + 0x20], eax
movsd xmm0, qword [eax]
lea ecx, [esp + 0x70]
movsd qword [ecx], xmm0
mov edx, esi
call fcn.004154c7
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov eax, dword [edi + 4]
mov dword [eax], 1
cmp ebx, 2
jb 0x415487
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x24], eax
xor ecx, ecx
inc ecx
mov dword [esp + 8], edi
mov dword [esp], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
lea edx, [ecx + 0x1f]
shr edx, 5
lea ebp, [ecx + ecx]
add ebp, 0x1f
shr ebp, 5
lea ecx, [esp + 0x68]
mov dword [esp + 0xc], edx
call fcn.004154c7
mov esi, eax
mov edi, edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x90]
mov ebx, dword [ecx]
cmp ebx, eax
cmova ebx, eax
lea eax, [ebx*4]
push eax
push dword [ecx + 4]
push edx
call fcn.00478910
add esp, 0xc
mov eax, esi
sub eax, ebx
shl eax, 2
lea ecx, [edi + ebx*4]
push eax
push ecx
call fcn.0046d418
mov edx, dword [esp + 8]
add esp, 8
mov eax, edx
shr eax, 5
mov dword [esp + 4], eax
cmp eax, esi
jae 0x415243
xor eax, eax
dec eax
mov ecx, edx
shl eax, cl
not eax
mov ecx, dword [esp + 4]
and dword [edi + ecx*4], eax
inc ecx
xor eax, eax
cmp esi, ecx
jne 0x415239
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov esi, dword [esp + 0xc]
cmp eax, esi
cmovae eax, esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x68]
mov esi, edx
mov dword [esp + 0x2c], ebp
mov edx, ebp
call fcn.004154c7
mov ebx, eax
mov ebp, edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x50]
lea edx, [esp + 0x60]
push dword [esp + 0x10]
push dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
call fcn.0041483e
add esp, 0xc
lea ecx, [esp + 0x68]
mov edi, dword [esp + 0xc]
mov edx, edi
call fcn.004154c7
mov dword [esp + 0x18], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], eax
push esi
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004141ad
add esp, 0xc
lea ecx, [esp + 0x68]
mov edx, edi
call fcn.004154c7
mov esi, eax
mov edi, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
push dword [esp]
push dword [esp + 0x94]
lea eax, [esp + 0x48]
push eax
call fcn.004141ad
add esp, 0xc
cmp dword [esp + 4], esi
jae 0x415315
xor eax, eax
dec eax
mov ecx, dword [esp]
shl eax, cl
not eax
mov ecx, dword [esp + 4]
and dword [edi + ecx*4], eax
inc ecx
xor eax, eax
cmp esi, ecx
jne 0x41530b
mov eax, dword [esp + 0xc]
cmp eax, ebx
cmovbe ebx, eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x38]
lea edx, [esp + 0x58]
push dword [esp + 0x10]
push dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
call fcn.0041483e
add esp, 0xc
test ebx, ebx
mov edi, dword [esp + 8]
je 0x4153a7
xor edi, edi
xor ecx, ecx
mov edx, 0
cmp ecx, dword [esp + 0x1c]
jae 0x415361
mov eax, dword [esp + 0x18]
mov edx, dword [eax + ecx*4]
xor eax, eax
add edi, dword [ebp + ecx*4]
setb al
mov esi, edi
add esi, edx
mov edi, eax
adc edi, 0
test ebp, ebp
je 0x41537b
mov dword [ebp + ecx*4], esi
inc ecx
cmp ebx, ecx
jne 0x41534f
xor eax, eax
xor edx, edx
inc edx
mov edi, dword [esp + 8]
mov esi, dword [ebp + eax*4]
not esi
xor ecx, ecx
add esi, edx
setb dl
test ebp, ebp
je 0x41539e
mov dword [ebp + eax*4], esi
mov cl, dl
inc eax
mov edx, ecx
cmp ebx, eax
jne 0x415389
lea ecx, [esp + 0x68]
mov edx, dword [esp + 0xc]
call fcn.004154c7
mov ebx, eax
mov ebp, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
lea edx, [esp + 0x58]
push dword [esp + 0x10]
push dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
call fcn.0041483e
add esp, 0xc
mov ecx, dword [esp]
and ecx, 0x1f
cmp dword [esp + 4], ebx
jae 0x4153ff
xor eax, eax
dec eax
shl eax, cl
not eax
mov edx, dword [esp + 4]
and dword [ebp + edx*4], eax
inc edx
xor eax, eax
cmp ebx, edx
jne 0x4153f4
mov eax, dword [esp]
add eax, eax
mov dword [esp], eax
push ecx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00414dea
add esp, 0xc
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x2c]
sub esi, edx
mov eax, dword [edi]
cmp eax, edx
cmovb edx, eax
sub eax, edx
cmp eax, esi
cmovae eax, esi
test eax, eax
je 0x415471
mov edi, edx
shl edi, 2
mov edx, dword [esp + 8]
add edi, dword [edx + 4]
xor edx, edx
xor ecx, ecx
mov esi, 0
cmp ecx, dword [esp + 0x1c]
jae 0x415458
mov esi, dword [esp + 0x18]
mov esi, dword [esi + ecx*4]
xor ebx, ebx
mov ebp, edi
add edx, dword [edi + ecx*4]
setb bl
add edx, esi
adc ebx, 0
mov dword [edi + ecx*4], edx
inc ecx
mov edx, ebx
cmp eax, ecx
jne 0x415446
mov ebx, dword [esp + 0x94]
mov ecx, dword [esp]
cmp ecx, ebx
mov edi, dword [esp + 8]
jb 0x4151aa
mov eax, ebx
shr eax, 5
cmp eax, dword [edi]
jae 0x4154a6
xor edx, edx
dec edx
mov ecx, ebx
shl edx, cl
not edx
mov ecx, dword [edi + 4]
and dword [ecx + eax*4], edx
inc eax
xor edx, edx
cmp eax, dword [edi]
jb 0x415499
push dword [esp + 0x20]
call fcn.004139b6
add esp, 4
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00475893
mov eax, edi
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret