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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5108bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x5c]
mov eax, dword [ecx + 0x960]
push eax
call fcn.004015f0
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [edi + ebx*4 + 0x314]
test eax, eax
jne 0x41a13c
mov eax, dword [edi + 0x5c]
mov esi, dword [ebp - 0x14]
add eax, 0x1478
shl esi, 4
mov eax, dword [eax + 4]
mov edx, dword [esi + eax + 4]
test edx, edx
je 0x41a13c
mov ecx, dword [esi + eax + 8]
mov eax, 0x66666667
sub ecx, edx
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [ebp - 0x18], edx
je 0x41a13c
mov edx, dword [edi + 0x184]
mov eax, dword [edi + 0x17c]
sub edx, 0x7d0
cmp eax, edx
jl 0x419f54
mov al, byte [edi + 0x327]
test al, al
je 0x41a13c
call fcn.004977e0
cdq
mov ecx, 0xc8
idiv ecx
test edx, edx
jne 0x41a13c
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x147c]
mov ecx, dword [esi + eax + 4]
test ecx, ecx
jne 0x419f7f
mov dword [ebp - 0x10], ecx
jmp 0x419f99
mov edx, dword [esi + eax + 8]
mov eax, 0x66666667
sub edx, ecx
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x10], edx
mov eax, dword [edi + 0x5c]
mov ecx, dword [eax + 0x147c]
mov dword [ebp - 0x18], ecx
call fcn.004977e0
xor edx, edx
div dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [esi + eax + 4]
lea esi, [edx + edx*4]
shl esi, 4
add esi, eax
mov al, byte [esi + 0x4c]
test al, al
je 0x419fda
call fcn.004977e0
cdq
mov ecx, 0x14
idiv ecx
test edx, edx
jne 0x41a13c
cmp dword [esi + 0x10], ebx
jne 0x41a13c
push 0x50
call fcn.004eb990
add esp, 4
xor ecx, ecx
cmp eax, ecx
je 0x419ffe
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
jmp 0x41a000
xor eax, eax
mov dword [edi + ebx*4 + 0x314], eax
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov edx, dword [esi]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], ecx
cmp dword [edx + 0x18], ecx
jle 0x41a047
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp - 0x10]
lea edx, [eax + ecx*8]
mov ecx, dword [edi + ebx*4 + 0x314]
push edx
add ecx, 0x34
call fcn.00407870
mov ecx, dword [esi]
mov eax, dword [ebp - 0x10]
inc eax
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
cmp eax, edx
jl 0x41a01e
mov edx, dword [edi + ebx*4 + 0x314]
mov eax, dword [esi + 0x28]
cmp ebx, 1
mov dword [edx + 0x28], eax
mov ecx, dword [esi + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [edi + ebx*4 + 0x314]
mov byte [edx + 0x31], 0
mov eax, dword [edi + ebx*4 + 0x314]
mov cl, byte [esi + 0x30]
mov byte [eax + 0x30], cl
mov edx, dword [edi + ebx*4 + 0x314]
mov al, byte [esi + 0x4c]
mov byte [edx + 0x4c], al
mov ecx, dword [edi + ebx*4 + 0x314]
mov edx, dword [esi + 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [edi + ebx*4 + 0x314]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [edi + ebx*4 + 0x314]
mov eax, dword [esi + 0x18]
mov dword [edx + 0x18], eax
mov ecx, dword [esi + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [edi + ebx*4 + 0x314]
mov eax, dword [esi + 0x20]
mov dword [edx + 0x20], eax
mov ecx, dword [edi + ebx*4 + 0x314]
mov dword [ecx + 0x44], 1
mov edx, dword [edi + ebx*4 + 0x314]
mov eax, dword [esi + 0x48]
mov dword [edx + 0x48], eax
jne 0x41a0e2
mov eax, dword [edi + 0x318]
fld dword [edi + 0x74]
jmp 0x41a0f0
cmp ebx, 2
jne 0x41a0f6
mov eax, dword [edi + 0x31c]
fld dword [edi + 0x78]
fadd qword [eax + 0x18]
fstp qword [eax + 0x18]
mov ecx, dword [edi + ebx*4 + 0x314]
fld qword [ecx + 0x18]
fcomp qword [0x52c950]
fnstsw ax
test ah, 5
jp 0x41a119
fld qword [ecx + 0x18]
fadd qword [0x52c948]
fstp qword [ecx + 0x18]
mov ecx, dword [edi + ebx*4 + 0x314]
fld qword [ecx + 0x18]
fcomp qword [0x52c950]
fnstsw ax
test ah, 5
jp 0x41a13c
fld qword [ecx + 0x18]
fadd qword [0x52c948]
fstp qword [ecx + 0x18]
inc ebx
cmp ebx, 4
jl 0x419ee4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret