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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
cmp dword [edi + 0x48], 0
je 0x41b96d
cmp byte [edi + 0x56], 0
je 0x41b1e0
mov ebx, dword [edi + 0x44]
jmp 0x41b1e3
mov ebx, dword [edi + 0x40]
mov eax, dword [edi + 0xa0]
test eax, eax
lea esi, [edi + 0x9c]
je 0x41b20d
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x41b212
call fcn.0044b7ad
fld qword [edi + 0x58]
mov dl, byte [edi + 0x56]
test dl, dl
fmul qword [edi + 8]
mov ecx, dword [esi + 4]
lea eax, [ebx + ebx*8]
fst qword [esp + 0x58]
lea ecx, [ecx + eax*4]
je 0x41b234
mov eax, dword [ecx + 4]
fild dword [ecx + 4]
jmp 0x41b238
mov eax, dword [ecx]
fild dword [ecx]
test eax, eax
jge 0x41b242
fadd qword [0x659f10]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
fmul st(1)
or eax, 0xc00
test dl, dl
mov dword [esp + 0x44], eax
fldcw word [esp + 0x44]
fistp qword [esp + 0x50]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x20], ebp
mov dword [ecx + 8], ebp
fldcw word [esp + 0x16]
je 0x41b279
mov edx, dword [ecx]
fild dword [ecx]
test edx, edx
jmp 0x41b281
mov eax, dword [ecx + 4]
fild dword [ecx + 4]
test eax, eax
jge 0x41b289
fadd qword [0x659f10]
fnstcw word [esp + 0x16]
mov dword [esp + 0x18], 0
movzx eax, word [esp + 0x16]
fmulp st(1)
or eax, 0xc00
mov dword [esp + 0x44], eax
fldcw word [esp + 0x44]
fistp qword [esp + 0x50]
mov edx, dword [esp + 0x50]
mov dword [ecx + 0xc], edx
mov ecx, dword [edi + 0xd4]
mov eax, dword [ecx]
fldcw word [esp + 0x16]
mov edx, dword [eax]
call edx
mov ecx, dword [edi + 0xd4]
mov ebx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 8]
mov dword [esp + 0x24], ebx
call edx
mov ecx, dword [edi + 0xd4]
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
lea edx, [ebx + ebx]
mov ebx, dword [edi + 0x50]
lea ecx, [eax + ebp]
imul ebx, ecx
sub ebx, eax
add ebx, edx
cmp dword [edi + 0x48], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], ecx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], 0
jbe 0x41b95d
fld qword [esp + 0x58]
mov eax, dword [esi + 4]
test eax, eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], 1
je 0x41b345
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41b350
fstp st(0)
call fcn.0044b7ad
fld qword [esp + 0x58]
mov ecx, dword [esi + 4]
lea eax, [edi + edi*8]
mov edi, dword [esp + 0x64]
lea ebx, [ecx + eax*4]
mov cl, byte [edi + 0x56]
test cl, cl
je 0x41b36e
mov edx, dword [ebx + 4]
fild dword [ebx + 4]
test edx, edx
jmp 0x41b374
mov eax, dword [ebx]
fild dword [ebx]
test eax, eax
jge 0x41b37c
fadd qword [0x659f10]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
fmul st(1)
or eax, 0xc00
test cl, cl
mov dword [esp + 0x38], eax
fldcw word [esp + 0x38]
fistp qword [esp + 0x50]
mov ebp, dword [esp + 0x50]
mov dword [ebx + 8], ebp
fldcw word [esp + 0x16]
je 0x41b3af
mov ecx, dword [ebx]
fild dword [ebx]
test ecx, ecx
jmp 0x41b3b7
mov edx, dword [ebx + 4]
fild dword [ebx + 4]
test edx, edx
jge 0x41b3bf
fadd qword [0x659f10]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x38], eax
fldcw word [esp + 0x38]
fistp qword [esp + 0x50]
mov ecx, dword [esp + 0x50]
mov dword [ebx + 0xc], ecx
cmp byte [edi + 0x54], 0
fldcw word [esp + 0x16]
mov dword [esp + 0x28], ecx
je 0x41b3f4
xor eax, eax
jmp 0x41b40e
mov eax, dword [esp + 0x20]
xor ecx, ecx
sub eax, ebp
cmp dword [edi + 0x50], 2
setne cl
xor edx, edx
add ecx, 1
div ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add eax, edx
mov edx, dword [esp + 0x30]
mov dword [ebx + 0x10], eax
cmp byte [edi + 0x54], 0
je 0x41b425
mov eax, edx
jmp 0x41b43b
cmp dword [esp + 0x18], 0
mov ecx, dword [esp + 0x34]
jne 0x41b432
mov ecx, edx
mov eax, dword [edi + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x24]
add eax, eax
add ebp, eax
mov dword [ebx + 0x18], ebp
cmp byte [edi + 0x54], 0
je 0x41b454
lea eax, [edx + edx]
jmp 0x41b461
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 0x34]
jne 0x41b461
mov eax, edx
add eax, ecx
mov dword [ebx + 0x1c], eax
cmp byte [edi + 0x54], 0
je 0x41b470
xor eax, eax
jmp 0x41b473
mov eax, dword [edi + 0x3c]
mov dword [ebx + 0x20], eax
cmp dword [edi + 0x50], 1
jbe 0x41b92a
cmp dword [esp + 0x18], 0
jne 0x41b495
mov edx, dword [esp + 0x64]
cmp byte [edx + 0x18], 0
jne 0x41b92a
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
add eax, 1
cmp eax, dword [edx + 0x48]
jae 0x41b92a
mov eax, dword [esi + 4]
test eax, eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], 2
mov ebp, ecx
mov dword [esp + 0x28], edi
je 0x41b4df
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [edi + 1]
cmp ecx, eax
jb 0x41b4ea
fstp st(0)
call fcn.0044b7ad
fld qword [esp + 0x58]
mov edx, dword [esp + 0x64]
mov dl, byte [edx + 0x56]
mov ecx, dword [esi + 4]
add edi, 1
test dl, dl
lea eax, [edi + edi*8]
mov dword [esp + 0x50], edi
lea ecx, [ecx + eax*4]
je 0x41b50d
mov eax, dword [ecx + 4]
fild dword [ecx + 4]
jmp 0x41b511
mov eax, dword [ecx]
fild dword [ecx]
test eax, eax
jge 0x41b51b
fadd qword [0x659f10]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
fmul st(1)
or eax, 0xc00
test dl, dl
mov dword [esp + 0x38], eax
fldcw word [esp + 0x38]
fistp qword [esp + 0x48]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [ecx + 8], edi
fldcw word [esp + 0x16]
je 0x41b552
mov edx, dword [ecx]
fild dword [ecx]
test edx, edx
jmp 0x41b55a
mov eax, dword [ecx + 4]
fild dword [ecx + 4]
test eax, eax
jge 0x41b562
fadd qword [0x659f10]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
fldcw word [esp + 0x38]
fistp qword [esp + 0x38]
mov edx, dword [esp + 0x38]
mov dword [ecx + 0xc], edx
cmp byte [eax + 0x54], 0
fldcw word [esp + 0x16]
je 0x41b598
mov eax, dword [ebx + 8]
jmp 0x41b59c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
cmp dword [eax + 0x50], 2
jne 0x41b5ae
xor eax, eax
jmp 0x41b5b6
mov eax, dword [esp + 0x20]
sub eax, edi
shr eax, 1
mov edi, dword [esp + 0x1c]
add eax, edi
mov edi, dword [esp + 0x34]
add eax, edi
add eax, dword [esp + 0x24]
cmp edx, ebp
mov dword [ecx + 0x10], eax
jae 0x41b5d5
mov eax, ebp
sub eax, edx
shr eax, 1
jmp 0x41b5d7
xor eax, eax
mov edx, dword [ebx + 0x14]
add edx, eax
mov eax, dword [esp + 0x48]
add eax, edi
mov dword [ecx + 0x14], edx
add dword [ebx + 0x18], eax
mov ecx, dword [ecx + 0xc]
cmp ecx, ebp
jbe 0x41b60c
mov eax, dword [ebx + 0xc]
mov ebp, ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
mov ecx, ebp
mov edx, ebp
sub ecx, eax
sub edx, eax
add dword [ebx + 0x1c], edx
shr ecx, 1
add dword [ebx + 0x14], ecx
mov edx, dword [esp + 0x64]
cmp dword [edx + 0x50], 2
jbe 0x41b92a
mov eax, dword [esp + 0x18]
add eax, 2
mov ecx, edx
cmp eax, dword [ecx + 0x48]
jae 0x41b92a
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x2c], 3
je 0x41b65c
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
mov ecx, dword [esp + 0x18]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, 2
cmp ecx, eax
jb 0x41b667
fstp st(0)
call fcn.0044b7ad
fld qword [esp + 0x58]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
add eax, 2
lea edx, [eax + eax*8]
mov eax, dword [esi + 4]
lea edi, [eax + edx*4]
mov dl, byte [ecx + 0x56]
test dl, dl
mov dword [esp + 0x38], edi
je 0x41b690
mov eax, dword [edi + 4]
fild dword [edi + 4]
test eax, eax
jmp 0x41b696
mov ecx, dword [edi]
fild dword [edi]
test ecx, ecx
jge 0x41b69e
fadd qword [0x659f10]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
fmul st(1)
or eax, 0xc00
test dl, dl
mov dword [esp + 0x50], eax
fldcw word [esp + 0x50]
fistp qword [esp + 0x50]
mov ecx, dword [esp + 0x50]
mov dword [edi + 8], ecx
fldcw word [esp + 0x16]
je 0x41b6d1
mov edx, dword [edi]
fild dword [edi]
test edx, edx
jmp 0x41b6d9
mov eax, dword [edi + 4]
fild dword [edi + 4]
test eax, eax
jge 0x41b6e1
fadd qword [0x659f10]
mov edx, dword [esp + 0x20]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x50], eax
sub edx, ecx
mov ecx, dword [esp + 0x44]
fldcw word [esp + 0x50]
shr edx, 1
add edx, dword [esp + 0x24]
fistp qword [esp + 0x50]
lea edx, [edx + ecx*2]
mov dword [edi + 0x10], edx
mov eax, dword [esp + 0x50]
cmp eax, ebp
mov dword [edi + 0xc], eax
fldcw word [esp + 0x16]
jae 0x41b72e
mov ecx, ebp
sub ecx, eax
shr ecx, 1
mov dword [esp + 0x1c], ecx
jmp 0x41b736
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41b759
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x28], eax
jb 0x41b764
fstp st(0)
call fcn.0044b7ad
fld qword [esp + 0x58]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 4]
lea eax, [eax + eax*8]
mov edx, dword [ecx + eax*4 + 0x14]
add edx, dword [esp + 0x1c]
mov eax, dword [edi + 0xc]
cmp eax, ebp
mov dword [edi + 0x14], edx
jbe 0x41b7c3
mov edi, dword [esp + 0x18]
fstp st(0)
sub eax, ebp
add dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0xc]
sub ecx, ebp
shr ecx, 1
add dword [ebx + 0x14], ecx
add edi, 1
call fcn.0041cf90
fld qword [esp + 0x58]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0xc]
sub edx, ebp
add eax, 0x14
shr edx, 1
add dword [eax], edx
mov eax, dword [esp + 0x18]
mov ebp, dword [ecx + 0xc]
add eax, 2
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x64]
add edi, 3
cmp edi, dword [eax + 0x48]
jae 0x41b92a
fstp st(0)
mov dword [esp + 0x2c], 4
call fcn.0041cf90
mov ecx, dword [esp + 0x64]
mov cl, byte [ecx + 0x56]
test cl, cl
mov dword [esp + 0x1c], eax
mov edx, eax
je 0x41b809
mov eax, dword [edx + 4]
fild dword [edx + 4]
test eax, eax
jge 0x41b81b
fadd qword [0x659f10]
jmp 0x41b81b
mov eax, dword [edx]
fild dword [edx]
test eax, eax
jge 0x41b817
fadd qword [0x659f10]
mov edx, dword [esp + 0x1c]
fld qword [esp + 0x58]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
fmul st(1), st(0)
or eax, 0xc00
fxch st(1)
test cl, cl
mov dword [esp + 0x50], eax
fldcw word [esp + 0x50]
fistp qword [esp + 0x50]
mov edi, dword [esp + 0x50]
mov dword [edx + 8], edi
fldcw word [esp + 0x16]
je 0x41b854
mov ecx, dword [edx]
fild dword [edx]
test ecx, ecx
jmp 0x41b85c
mov eax, dword [edx + 4]
fild dword [edx + 4]
test eax, eax
jge 0x41b864
fadd qword [0x659f10]
mov ecx, dword [esp + 0x20]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
fmulp st(1)
or eax, 0xc00
mov dword [esp + 0x50], eax
sub ecx, edi
shr ecx, 1
fldcw word [esp + 0x50]
fistp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov edi, ecx
mov ecx, dword [esp + 0x44]
fldcw word [esp + 0x16]
add edi, dword [esp + 0x24]
lea ecx, [ecx + ecx*2]
add ecx, edi
cmp eax, ebp
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
jae 0x41b8b5
mov ecx, ebp
sub ecx, eax
shr ecx, 1
mov dword [esp + 0x38], ecx
jmp 0x41b8bd
mov dword [esp + 0x38], 0
mov edi, dword [esp + 0x28]
call fcn.0041cf90
mov edx, dword [eax + 0x14]
add edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x14], edx
mov eax, dword [eax + 0xc]
cmp eax, ebp
jbe 0x41b926
mov edi, dword [esp + 0x18]
sub eax, ebp
add dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
sub ecx, ebp
shr ecx, 1
add dword [ebx + 0x14], ecx
add edi, 1
call fcn.0041cf90
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0xc]
mov edi, dword [esp + 0x18]
sub ecx, ebp
add eax, 0x14
shr ecx, 1
add dword [eax], ecx
add edi, 2
call fcn.0041cf90
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0xc]
sub ecx, ebp
add eax, 0x14
shr ecx, 1
add dword [eax], ecx
fld qword [esp + 0x58]
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x64]
cmp byte [eax + 0x54], 0
mov dword [esp + 0x18], ecx
jne 0x41b952
cmp ecx, dword [eax + 0x48]
jne 0x41b94c
mov edx, dword [esp + 0x30]
add dword [ebx + 0x1c], edx
mov edx, dword [ebx + 0x1c]
add dword [eax + 0x3c], edx
cmp ecx, dword [eax + 0x48]
jb 0x41b318
fstp st(0)
mov esi, dword [esp + 0x64]
push 0
push esi
call fcn.0041be40
mov byte [esi + 0x78], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4