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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
mov ebx, dword [eax + 4]
call fcn.00414b80
mov edi, dword [esp + 0xd8]
mov dword [edi], 0
test eax, eax
js 0x41aa18
lea ecx, [ebx + eax]
movzx edx, byte [ecx]
movzx ecx, byte [ecx + 1]
shl edx, 8
add edx, ecx
test dx, dx
jg 0x41a650
mov dword [esp + 0x3c], 0
xor ebp, ebp
cmp dx, 0xffff
je 0x41ac30
mov eax, dword [esp + 0xd8]
mov edi, dword [esp + 0x3c]
mov dword [eax], edi
add esp, 0xbc
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
movsx edx, dx
lea ebp, [ebx + eax + 0xa]
lea edi, [edx + edx]
mov dword [esp + 0x98], ebp
add eax, edi
mov dword [esp + 0x68], edi
lea esi, [ebx + eax + 0xa]
movzx ecx, byte [esi]
movzx esi, byte [esi + 1]
shl ecx, 8
add ecx, esi
mov esi, dword [esp + 0xd0]
movzx ecx, cx
lea eax, [eax + ecx + 0xc]
add eax, ebx
lea ebx, [ebp + edi - 2]
movzx ecx, byte [ebx]
movzx ebx, byte [ebx + 1]
shl ecx, 8
add ecx, ebx
mov ebx, dword [esi]
movzx ecx, cx
mov dword [esp + 0x70], ecx
lea ecx, [edi + ecx + 1]
mov esi, dword [ebx + 0x5058]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx + 0xf]
and ecx, 0xfffffff0
add ecx, esi
cmp ecx, 0x17700
jg 0x41b0e8
mov edi, esi
add edi, dword [ebx + 0x5054]
mov dword [ebx + 0x5058], ecx
mov dword [esp + 0x3c], edi
je 0x41aa18
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
xor ebx, ebx
add ecx, esi
lea edx, [esi + edx*8]
lea ecx, [ecx + ecx*4]
add edx, edx
lea esi, [ecx + ecx]
mov dword [esp + 0x30], edx
xor ecx, ecx
lea edx, [edi + edx + 8]
mov dword [esp + 0x40], esi
lea esi, [edi + esi + 0x12]
jmp 0x41a722
movzx ebx, byte [eax]
mov ecx, ebx
and ecx, 8
jne 0x41a9e0
add eax, 1
mov byte [edx], bl
add edx, 0xa
cmp esi, edx
je 0x41a732
test cl, cl
je 0x41a708
mov byte [edx], bl
add edx, 0xa
sub ecx, 1
cmp esi, edx
jne 0x41a722
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
xor ecx, ecx
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
add edx, edi
lea edi, [edi + esi + 0xa]
jmp 0x41a775
movzx ebx, byte [eax]
mov ecx, esi
mov ebp, ebx
neg ebp
test cl, cl
cmove ebx, ebp
add dword [esp + 0x20], ebx
add eax, 1
movzx esi, word [esp + 0x20]
add edx, 0xa
mov word [edx - 0xa], si
cmp edi, edx
je 0x41a7af
movzx ebx, byte [edx + 8]
mov esi, ebx
and esi, 0x10
and ebx, 2
jne 0x41a750
mov ecx, esi
test cl, cl
jne 0x41a765
movzx ebx, byte [eax]
movzx esi, byte [eax + 1]
add edx, 0xa
add eax, 2
shl ebx, 8
add ebx, esi
movsx ebx, bx
add dword [esp + 0x20], ebx
movzx esi, word [esp + 0x20]
mov word [edx - 0xa], si
cmp edi, edx
jne 0x41a775
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], eax
xor ecx, ecx
mov esi, dword [esp + 0x40]
lea edx, [edi + edx + 2]
lea edi, [edi + esi + 0xc]
jmp 0x41a7f9
mov eax, dword [esp + 0x20]
movzx ebx, byte [eax]
mov eax, esi
mov ebp, ebx
neg ebp
test al, al
mov eax, dword [esp + 0x20]
cmove ebx, ebp
add eax, 1
mov dword [esp + 0x20], eax
add ecx, ebx
mov word [edx], cx
add edx, 0xa
cmp edi, edx
je 0x41a834
movzx ebx, byte [edx + 6]
mov esi, ebx
and esi, 0x20
and ebx, 4
jne 0x41a7d0
mov eax, esi
test al, al
jne 0x41a7ef
mov eax, dword [esp + 0x20]
add edx, 0xa
movzx ebx, byte [eax]
movzx esi, byte [eax + 1]
add eax, 2
mov dword [esp + 0x20], eax
shl ebx, 8
add ebx, esi
movsx ebx, bx
add ecx, ebx
mov word [edx - 0xa], cx
cmp edi, edx
jne 0x41a7f9
xor ecx, ecx
mov dword [esp + 0x7c], 0
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x40], ecx
jmp 0x41a912
test byte [esp + 0x30], 1
jne 0x41aa30
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x41ab60
mov edi, dword [esp + 0x3c]
lea eax, [edx + edx*4]
mov ebx, dword [esp + 0x78]
add edx, 1
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x7c]
lea eax, [edi + eax*2]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x7c], esi
add ebx, edi
mov byte [eax + 8], 3
sar ebx, 1
mov word [eax + 6], cx
mov word [eax], bx
mov ebx, esi
add ebx, ecx
sar ebx, 1
mov word [eax + 2], bx
movzx ebx, word [esp + 0x78]
mov dword [esp + 0x78], edi
mov word [eax + 4], bx
mov eax, ebp
mov ebp, dword [esp + 0x20]
lea esi, [esi]
cmp dword [esp + 0x70], eax
jle 0x41aa80
mov eax, dword [esp + 0x68]
add eax, ebp
lea ebx, [eax + eax*4]
mov eax, dword [esp + 0x3c]
add ebx, ebx
add eax, ebx
movsx esi, word [eax]
movzx ecx, byte [eax + 8]
movsx eax, word [eax + 2]
mov dword [esp + 0x50], esi
mov edi, esi
mov dword [esp + 0x60], eax
mov esi, eax
lea eax, [ebp + 1]
mov byte [esp + 0x30], cl
mov dword [esp + 0x20], eax
cmp ebp, dword [esp + 0x64]
jne 0x41a8a0
test ebp, ebp
jne 0x41aba8
movzx eax, byte [esp + 0x30]
and eax, 1
mov ecx, eax
xor ecx, 1
movzx ecx, cl
mov dword [esp + 0x8c], ecx
test al, al
jne 0x41aae0
mov eax, dword [esp + 0x3c]
lea eax, [eax + ebx + 0xa]
movsx ecx, word [eax]
movsx ebx, word [eax + 2]
mov dword [esp + 0x84], ecx
mov edi, ecx
mov esi, ebx
mov dword [esp + 0x88], ebx
test byte [eax + 8], 1
jne 0x41ac08
mov eax, dword [esp + 0x50]
add eax, ecx
mov ecx, dword [esp + 0x60]
sar eax, 1
mov dword [esp + 0x84], eax
mov edi, eax
mov eax, ebx
add eax, ecx
mov dword [esp + 0x94], ecx
sar eax, 1
mov dword [esp + 0x88], eax
mov esi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x90], eax
jmp 0x41aaf4
movzx ecx, byte [eax + 1]
add eax, 2
jmp 0x41a719
mov edx, dword [ecx + 0x5240]
test edx, edx
je 0x41aa18
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov eax, dword [ecx + 0x5244]
mov dword [esp], eax
call edx
lea esi, [esi]
xor ebp, ebp
add esp, 0xbc
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x3c]
lea eax, [edx + edx*4]
add edx, 1
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x41ab88
mov word [eax], di
movzx edi, word [esp + 0x78]
mov byte [eax + 8], 3
mov word [eax + 4], di
movzx edi, word [esp + 0x7c]
mov word [eax + 2], si
mov word [eax + 6], di
mov eax, ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x40], 0
cmp dword [esp + 0x70], eax
jg 0x41a912
nop
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call fcn.00414c50
mov ebp, eax
jmp 0x41a62d
movsx eax, si
mov dword [esp + 0x88], eax
movsx eax, di
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x3c]
lea eax, [edx + edx*4]
mov dword [esp + 0x40], 0
add edx, 1
lea eax, [ecx + eax*2]
mov word [eax], di
mov edi, dword [esp + 0x80]
mov word [eax + 2], si
mov dword [eax + 4], 0
mov byte [eax + 8], 1
mov eax, dword [esp + 0x98]
lea ecx, [eax + edi*2]
add edi, 1
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
mov dword [esp + 0x80], edi
shl eax, 8
add eax, ecx
movzx eax, ax
add eax, 1
mov dword [esp + 0x64], eax
mov eax, ebp
mov ebp, dword [esp + 0x20]
jmp 0x41a908
mov eax, dword [esp + 0x60]
mov dword [esp + 0x40], 1
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x78], eax
mov eax, ebp
mov ebp, dword [esp + 0x20]
jmp 0x41a908
mov word [eax], di
mov word [eax + 2], si
mov dword [eax + 4], 0
mov byte [eax + 8], 2
mov eax, ebp
mov ebp, dword [esp + 0x20]
jmp 0x41a908
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call fcn.00414c50
mov edx, eax
jmp 0x41a957
mov ecx, dword [esp + 0x60]
lea eax, [ebp + 2]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x90], ecx
jmp 0x41aaf4
lea edi, [ebx + eax + 0xa]
jmp 0x41ad0e
fldz
add edi, 4
fst dword [esp + 0x60]
fstp dword [esp + 0x64]
test bl, 8
je 0x41ad84
movzx eax, byte [edi]
movzx edx, byte [edi + 1]
add edi, 2
shl eax, 8
add eax, edx
mov word [esp + 0x20], ax
fild word [esp + 0x20]
fmul dword [0x5a4e9c]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp xword [esp + 0x20]
fld xword [esp + 0x20]
fstp xword [esp + 0x40]
fld xword [esp + 0x40]
fmul st(0)
fldz
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x30]
fld qword [esp + 0x30]
fxch st(1)
fstp xword [esp + 0x50]
fld xword [esp + 0x50]
movzx esi, si
fstp dword [esp + 0x30]
fstp qword [esp]
call fcn.004a1cb0
fstp qword [esp + 0x68]
fld dword [esp + 0x30]
fstp xword [esp + 0x30]
fld xword [esp + 0x30]
fmul st(0)
fld xword [esp + 0x20]
fld st(0)
fmulp st(1)
faddp st(1)
fstp qword [esp]
call fcn.004a1cb0
lea eax, [esp + 0xac]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd0]
fstp qword [esp + 0x70]
mov dword [esp], eax
call fcn.0041a5d0
mov edx, eax
test eax, eax
jg 0x41ae10
and ebx, 0x20
je 0x41a62d
mov dword [esp + 0xac], 0
movzx ebx, byte [edi]
movzx esi, byte [edi + 2]
movzx eax, byte [edi + 1]
movzx edx, byte [edi + 3]
shl ebx, 8
shl esi, 8
add ebx, eax
add esi, edx
test al, 2
je 0x41ac40
movsx ax, byte [edi + 4]
movzx edx, byte [edi + 5]
test bl, 1
je 0x41afc0
shl eax, 8
add edi, 8
add eax, edx
movzx edx, byte [edi - 1]
mov word [esp + 0x20], ax
movzx eax, byte [edi - 2]
fild word [esp + 0x20]
shl eax, 8
add eax, edx
mov word [esp + 0x20], ax
fstp dword [esp + 0x64]
fild word [esp + 0x20]
fstp dword [esp + 0x60]
test bl, 8
jne 0x41ac56
test bl, 0x40
je 0x41aff0
movzx eax, byte [edi]
movzx edx, byte [edi + 1]
add edi, 4
shl eax, 8
add eax, edx
movzx edx, byte [edi - 1]
mov word [esp + 0x20], ax
fild word [esp + 0x20]
fld dword [0x5a4e9c]
movzx eax, byte [edi - 2]
fmul st(1), st(0)
fxch st(1)
shl eax, 8
add eax, edx
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov word [esp + 0x20], ax
fild word [esp + 0x20]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fxch st(1)
fstp xword [esp + 0x40]
fld xword [esp + 0x40]
fmul st(0)
fldz
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fxch st(1)
fstp xword [esp + 0x50]
fld xword [esp + 0x50]
fxch st(2)
fstp xword [esp + 0x20]
fxch st(1)
jmp 0x41aca6
fnstcw word [esp + 0x9e]
fld qword [esp + 0x68]
mov eax, dword [esp + 0xac]
lea ecx, [edx + edx*4]
add ecx, ecx
mov esi, eax
mov dword [esp + 0x78], eax
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
add esi, ecx
fld dword [esp + 0x64]
fld qword [esp + 0x70]
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fld dword [esp + 0x60]
mov dword [esp + 0x60], ecx
mov ecx, esi
movzx esi, word [esp + 0x9e]
or si, 0xc00
mov word [esp + 0x9c], si
lea esi, [esi]
lea esi, [esi]
fild word [eax]
add eax, 0xa
fild word [eax - 8]
fld xword [esp + 0x40]
fmul st(2)
fld xword [esp + 0x30]
fmul st(2)
faddp st(1)
fadd st(5)
fmul st(6)
fldcw word [esp + 0x9c]
fistp word [eax - 0xa]
fldcw word [esp + 0x9e]
fld xword [esp + 0x50]
fmulp st(2)
fld xword [esp + 0x20]
fmulp st(1)
faddp st(1)
fadd st(1)
fmul st(2)
fldcw word [esp + 0x9c]
fistp word [eax - 8]
fldcw word [esp + 0x9e]
fild word [eax - 6]
fild word [eax - 4]
fld xword [esp + 0x40]
fmul st(2)
fld xword [esp + 0x30]
fmul st(2)
faddp st(1)
fadd st(5)
fmul st(6)
fldcw word [esp + 0x9c]
fistp word [eax - 6]
fldcw word [esp + 0x9e]
fld xword [esp + 0x50]
fmulp st(2)
fld xword [esp + 0x20]
fmulp st(1)
faddp st(1)
fadd st(1)
fmul st(2)
fldcw word [esp + 0x9c]
fistp word [eax - 4]
fldcw word [esp + 0x9e]
cmp ecx, eax
jne 0x41ae70
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0xd0]
lea esi, [edx + ebp]
mov ecx, dword [eax]
lea eax, [esi + esi*4]
lea eax, [eax + eax + 0xf]
mov edx, dword [ecx + 0x5058]
and eax, 0xfffffff0
add eax, edx
cmp eax, 0x17700
jg 0x41a9f0
mov dword [ecx + 0x5058], eax
add edx, dword [ecx + 0x5054]
je 0x41aa18
lea ecx, [ebp + ebp*4]
add ecx, ecx
test ebp, ebp
je 0x41af8e
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x60]
add ecx, edx
mov dword [esp + 0x20], edx
mov ebp, esi
mov dword [esp], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], edx
jmp 0x41ad05
mov word [esp + 0x20], ax
fild word [esp + 0x20]
movsx dx, dl
add edi, 6
mov word [esp + 0x20], dx
fstp dword [esp + 0x64]
fild word [esp + 0x20]
fstp dword [esp + 0x60]
jmp 0x41ac4d
test bl, 0x80
je 0x41b0c0
movzx eax, byte [edi]
movzx edx, byte [edi + 1]
add edi, 8
shl eax, 8
add eax, edx
movzx edx, byte [edi - 5]
mov word [esp + 0x20], ax
fild word [esp + 0x20]
fld dword [0x5a4e9c]
movzx eax, byte [edi - 6]
fmul st(1), st(0)
fxch st(1)
shl eax, 8
add eax, edx
movzx edx, byte [edi - 3]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov word [esp + 0x20], ax
fild word [esp + 0x20]
movzx eax, byte [edi - 4]
fmul st(2)
shl eax, 8
add eax, edx
movzx edx, byte [edi - 1]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov word [esp + 0x20], ax
fild word [esp + 0x20]
movzx eax, byte [edi - 2]
fmul st(3)
shl eax, 8
add eax, edx
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov word [esp + 0x20], ax
fild word [esp + 0x20]
fmulp st(4)
fxch st(3)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fxch st(2)
fstp xword [esp + 0x40]
fld xword [esp + 0x40]
fxch st(1)
fstp xword [esp + 0x50]
fld xword [esp + 0x50]
fmul st(0)
fxch st(1)
fmul st(0)
faddp st(1)
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fxch st(1)
fstp xword [esp + 0x20]
fxch st(1)
jmp 0x41aca6
fld1
fld st(0)
fldz
fstp xword [esp + 0x50]
fld xword [esp + 0x50]
fxch st(2)
fstp xword [esp + 0x40]
fld xword [esp + 0x40]
fstp xword [esp + 0x20]
fxch st(1)
jmp 0x41aca6
mov eax, dword [ebx + 0x5240]
test eax, eax
je 0x41aa18
mov dword [esp + 8], ecx
xor ebp, ebp
mov dword [esp + 4], 2
mov edx, dword [ebx + 0x5244]
mov dword [esp], edx
call eax
jmp 0x41aa1a